PDA

View Full Version : Tables. (basic)


b34ch3r
08-22-2002, 08:20 PM
Hi, i don;t kniow much about tables, so could you help me? i want 2 rows, and only 1 column. i would like the table like the diagram shown below:-


___________________________________
|___________________________________|
| |
| |
| |
| |
| |
| |
| |
|___________________________________|

the border would be 2, and the border and top row and writing would be colored #0099CC, and the background for the bottom row would be #00CCFF.

Thankyou sooo much - as u have already guessed- i am new to this!:o :( :mad: :o

Blaze
08-22-2002, 08:40 PM
Heya :)

Here's the code you need for your specs ;) :


-----------------

<table width="132" border="2" cellspacing="0" cellpadding="0" bgcolor="#0099CC" bordercolor="#0099CC">
<tr>
<td bgcolor="#0099CC">&nbsp;</td>
</tr>
<tr>
<td bgcolor=#00CCFF>&nbsp;</td>
</tr>
</table>

-----------------

For the font to be the colour you wanted, use the <font> tag.. but, you can also use a CSS file, or insert your font colour specs in the body tag. It's best to go with CSS, since the <font> tag is being deprecated, as in being no longer soon enough. It's best to even use CSS for your table specs too :p


You can edit and add attributes to the table and cell tags for width, height and colours.. including specifying your border light and shade colours for neat efforts :D Also the alignment of your table and table contents. There is much to know for tables, but it's not hard at all.
From your wonderful visual diagram, it appears also you want your top row to be smaller then your lower. Easily done with percentages or pixel values with the height attribute included in your table and row tags

If you need any help, give me a buzz via my email or AIM or whatever. OR.. just wait for some more stuff. It's hard to know what to give you when I don't know what's going to be inside the table.. and how big you actually need it ;)

Ciao

b34ch3r
08-23-2002, 08:35 AM
thanx alot