Or an ID since ID's override classes. On Fri, Sep 24, 2010 at 8:10 PM, Kevin A. Cameron <[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]> 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] >> 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] > -- -- 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]
