|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I'm not to familiar with CSS but would like to use it on a project i'm working on. Can someone tell me the code to declare a html table size and soforth? Thanking you in advance
|
|
#2
|
|||
|
|||
|
Here is a simple example.
<head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <style type="text/css"> <!-- .myTable { margin: 0px; padding: 0px; height: 480px; width: 640px; border: 1px solid #000000; } --> </style> </head> <body> <table class="myTable"> <tr> <td> </td> </tr> </table> </body> |
|
#3
|
|||
|
|||
|
<html>
<head> <title>untitled</title> <style type="text/css"> table { width: 608px; height: 208px; border-collapse: collapse; background: saddlebrown; } td, th { width: 200px; height: 50px; margin: 0px; padding: 0px; border: 4px gold groove; font: 600 24px "comic sans ms",sans-serif; color: ivory; text-align: center; } body { text-align: center; margin-top: 100px; background: url(http://forums.devshed.com/images/icons/icon5.gif); overflow: hidden; } </style> </head> <body> <br> <table> <tr> <td>1</td><td>2</td><td>3</td> </tr><tr> <td>4</td><td>5</td><td>6</td> </tr><tr> <td>7</td><td>8</td><td>9</td> </tr><tr> <td>10</td><td>11</td><td>12</td> </tr> </table> </body> </html> http://lists.evolt.org/index.cfm/a/...e&orderdir=DESC Last edited by adios : October 17th, 2002 at 09:44 PM. |
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > How do I declare size of my table in CSS? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|