Forum Moderators: not2easy
H1 {
height:20px;
padding:3 10 0 10;
border-bottom: solid 1px;
font: bold 11px Tahoma, Verdana, Arial, sans-serif;
color: #FFFFFF;
}
DIV#lc h1
{
border-bottom:#000000;
background-color:#eeeeee;
}
any ideas?
Both of your border statements are wrong in this case. If you are trying to override the h1 properties with the h1 that is wrapped in the div, you need to give both proper statements.
So in the h1
border-bottom: 1px solid #somecolor;
and in the next h1
border-bottom: 1px solid #000;
I had some fun one time with a dynamic menu in IE6: I was playing with borders via css, and at one point to change the border color, I did something along the lines of "border:808080" rather than "#808080" or something similar.... the page took a long time to render, and when it finally showed, ba-BOOOOOOoommm! this Huge, thick, black [border] consumed the screen and beyond for several menu specifications.
It actually took me a while to figure out what I did wrong. The other members of development weren't as amused as I.
-bronius
ok, that does work, but I thought you wouldn't need to repeat the "1px solid" in the second H1. that seems redundant when I'm only switching the colors.
I believe you can do border-bottom-color: #colorname;
for that then.
I prefer to just to do the shorthand way though.
And as bron said make sure you use a unit with the padding.