PDA

View Full Version : Easy Css question about <hr>


RawliJr
07-10-2006, 05:01 PM
how do i add my <hr> to be black in css

<style type="text/css">
}
TABLE {
border: 2px solid #FFF;
}
</style>

like to add to that?

something like this?

<style type="text/css">
}
TABLE {
border: 2px solid #FFF;
}
hr{
style: #000;
}
</style>


i just dont know?

kaitco
07-10-2006, 05:13 PM
Some basic CSS for the horizontal rule:

hr {
width: 100%;
color: #000;
background-color: #000;
height: 5px;
}

This part
color: #000;

is needed because IE does not understand this part:
background-color: #000;

I suggest going to w3schools.com (http://www.w3schools.com) for more information.

RawliJr
07-10-2006, 05:17 PM
thanx:D