Grow your CSS skills. Land your dream job.

Using bootstrap defined styles in less

  • # February 16, 2013 at 4:44 pm

    First off, newbie here and hoping to get to know some of you since this seems like a cool place to share and learn info.

    At any rate, I’m working with Bootstrap and am using a search field in a fixed nav-bar and want it to only .pull-right when it’s at a minimum width of 980px. When I try and use the .pull-right Bootstrap style, it breaks my less stylesheet and none of it actually applies:

    .search-query {
    @media (min-width: 980px) {
    .pull-right;
    width: 150px;
    }
    }

    Do I have to redefine what .pull-right is or is there any way I can inherit the Bootstrap style to use with my less stylesheet? Thanks in advance for the help!

    # February 16, 2013 at 5:56 pm

    Is this a typo?

    .pull-right; <– Should be a opening bracket…no?

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

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".