Hi Guys
I'm playing around with firebug to see how certain changes to the CSS would look on my site. However, when i insert a new style element, once i press enter, it disappears. This is the rule:
.avPlayerWrapper {
clear: both;
display: block;
float: left;
text-align: center;
border:2;
}
when i insert the "border:2;" element , as soon as i press enter it disappears.
Does anyone know what may be causing this?
@ja,
That's only partly correct.
To work in all browsers, the border shorthand property requires 3 attributes:
This is valid code:
#divName {
border: 2px solid #000;
}
And this is valid:
#divName {
border: thin dotted #000;
}
For more on CSS Borders:
http://www.w3schools.com/css/css_border.asp
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
I think only the border-style property is required, the others will fall back to default values.
From the page you linked to:
"It does not matter if one of the values above are missing (although, border-style is required), as long as the rest are in the specified order."
Also see number 3 here.
But I agree, it's a good idea to get in the habit of specifying all three.
North America
Europe, Middle East and Africa
Asia Pacific