Forums

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
    Posts
  • #39610

    Hello everyone,
    I don’t understand why this occurr: http://jsfiddle.net/E8W9Y/
    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

    #108859
    Mottie
    Member

    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

    #108860
    Paulie_D
    Member

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

    http://codepen.io/Paulie-D/pen/fqCEt

    #108878

    Thanks @Paulie_D and @Mottie!

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