Results 1 to 8 of 8
Related
-
Does content matter? Forum: Affiliate Marketing and Reseller Programs
Replies: 22 -
Table Properties Forum: HTML Forum
Replies: 10 -
Picture Properties Forum: CSS Forum
Replies: 7 -
new window properties Forum: HTML Forum
Replies: 2
-
01-26-2003, 10:07 AM #1
Does the order of properties in CSS matter?
Hi everyone,
When I try the following CSS I get an effect where there is a colored bar accross the width of the screen, when the element contains text:
.top {
font-size: medium;
position: absolute;
top: 20px;
left: 0px;
padding: 3px;
background-color: #336699;
color: white;
width: 100%
}
However, in this version of the same CSS, the colored bar only goes as far as the length of the text and the style is not applied:
.top {
position: absolute;
top: 20px;
left: 0px;
padding: 3px;
background-color: #336699;
color: white;
width: 100%
font-size: medium;
}
The above is true for both IE6 and Mozilla 1.3a (most recent build).
The only difference between the 2 style sheets are the placement of the "font-size: medium" line.
Can anyone help me out with this?
Thanks!
-
01-26-2003, 10:15 AM #2
In short yes, it does make a difference.
Dean or another could probably give you better info.
Dave
-
01-26-2003, 10:53 AM #3Code:
width: 100%
So add the missing sign and it should work fine.If one of our members helps you, please click theicon to add to their reputation!
No support via email or private message - use the forums!
Before you ask, have you Searched?
-
01-27-2003, 01:49 AM #4
the order doesn't matter, order of execution only comes into play if say you have css code in the head of your document, as well as a css file included. the css in your head tags would have precedence then.
-
01-27-2003, 09:42 AM #5
"the order doesn't matter,"
Wrong, try putting your a:hover before a:link and see if it works
-
01-27-2003, 01:17 PM #6Originally posted by Dave
"the order doesn't matter,"
Wrong, try putting your a:hover before a:link and see if it works
-
01-27-2003, 01:55 PM #7
Good call
-
01-28-2003, 03:19 AM #8
[Hostripples India] - Best Canada Linux SSD VPS Server!
02-15-2019, 12:46 AM in Web Hosting Forum