If you're testing this in IE7 or less, they have minimal support for
multiple class definitions. More modern browsers such as Firefox 2.3+,
Chrome and Safari 3+ support multiple classes. As I believe IE8 and IE9
(BETA) do as well.
On 9/24/2010 8:15 PM, Tony Thomas wrote:
Or an ID since ID's override classes.
On Fri, Sep 24, 2010 at 8:10 PM, Kevin A. Cameron
<[email protected] <mailto:[email protected]>> wrote:
Hmm, certainly should work, unless you have other classes that
over-write the first class.
Have you inspected the element in Firebug to see if there are
other definitions that are cancelling the intended definitions out?
Kevin
On Thu, Sep 23, 2010 at 4:59 PM, Oni <[email protected]
<mailto:[email protected]>> wrote:
Just wondering why this works
<div id="right" class="box2" style="margin-bottom:10px;
padding-top:
5px; padding-bottom: 5px;">
mytest10
</div>
But as css it does not i.e.:
.schedulebanner {
margin-bottom:10px;
padding-top: 5px;
padding-bottom: 5px;
}
<div id="right" class="box2 schedulebanner">
mytest10
</div>
OR
<div id="right" class="schedulebanner box2">
mytest10
</div>
Thanks
--
--
You received this because you are subscribed to the "Design
the Web with CSS" at Google groups.
To post: [email protected]
<mailto:[email protected]>
To unsubscribe: [email protected]
<mailto:[email protected]>
--
--
You received this because you are subscribed to the "Design the
Web with CSS" at Google groups.
To post: [email protected]
<mailto:[email protected]>
To unsubscribe: [email protected]
<mailto:[email protected]>
--
--
You received this because you are subscribed to the "Design the Web
with CSS" at Google groups.
To post: [email protected]
To unsubscribe: [email protected]
--
--
You received this because you are subscribed to the "Design the Web with CSS"
at Google groups.
To post: [email protected]
To unsubscribe: [email protected]