View Full Version : Text in colored bars


puccamucci
07-23-2003, 05:00 AM
How do you make a colored bar with text in it. It's kinda like a something that seperates your pictures or text if you want. And how do you change the font color and the thickness of the bar?
I got this one from a site but It's not exactly working because it pushes everything under it to the top.


<tr><td colspan="4" align="center" bgcolor="#FFCEE7"><font face="Verdana,Geneva,Arial,Helvetica,sans-serif" size="1" color="#F2B1CE"><strong><a href="http://geocities.com/" target="_blank">Geocities</a></strong></td></tr>
<tr>


Am i doing something wrong here?

P.S. ...what's the difference between <tr> and <br>?

Dude128
07-23-2003, 05:10 AM
first of all, that code is incomplete. you're missing <table> and </table> tags, you have an extra <tr> tag, and you don't need the colspan="4" because you only have one cell :P

to change the font color, change the color attribute in the <font> tag. to change the thickness of the bar, add height="##" to the <td> tag, replacing the ## with the height in pixels that you want.

also, you should have a </font> tag just before the </td> tag.

<tr> starts a new table row. <br> is a line break.

perhaps you would benefit from reading through this section: http://www.lissaexplains.com/tables.shtml

puccamucci
07-23-2003, 05:38 AM
i tried doing what you sed but than it's still not working. Well it is but than everything is still being pushed up instead of going under it. I think i got the code right =/ its:

<tr><td colspan="1" align="center" bgcolor="#FFCEE7"><font face="Verdana,Geneva,Arial,Helvetica,sans-serif" size="1" color="#F2B1CE"><strong><a href="http://www.geocities.com/" target="_blank">Geocities</a></strong></font></td></tr>

bellportal
07-23-2003, 11:04 AM
I don't know if this is exactly what you want, but...

You could create an image that looks like a coloured bar, and then insert the image where you want.

HTH,