The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Implementing an SVG Icon System" Nov 30 - 6:00 PM Eastern

what is the meaning of this line in the css

  • # January 19, 2013 at 5:40 am

    what is the meaning of this line in css

    .btn-group > .btn-mini

    # January 19, 2013 at 5:50 am

    That is a child selector, it will only select the next element it finds with a class of `.btn-mini`.

    # January 19, 2013 at 6:24 am

    thanks man

    # January 19, 2013 at 7:35 am

    No, it doesn’t.

    It means it will target any element with the .btn-mini class which is directly descendant of any element with the .btn-group class.

    This means the p tag will match but not the span since it’s not a direct child of .btn-group.

    div class=”btn-group”
    p class=”btn-mini”
    span class=”btn-mini”

    # January 20, 2013 at 10:55 pm

    You can learn a little bit more about it here too:

    # January 28, 2013 at 5:21 am

    Thank you all

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed