The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other Doubt with css class class…

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #39610

    Hello everyone,
    I don’t understand why this occurr:
    In my mind I hope the class box have the same atributes of the class maior. Why this not happened? Somebody can help me? Give me a link or a explanation… :) Thanks


    The problem is because .box and .maior are on the same div. So you’ll need a selector with the names combined to target it .box.maior (updated demo).

    #content .box.maior{width:200px; height:100px; background:#333; color: #fff;}‚Äč

    See this post for more information


    You just need to remove the space between .box and .maior.


    Thanks @Paulie_D and @Mottie!

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Other’ is closed to new topics and replies.