Results 1 to 2 of 2

Thread: Change navbar height on resize

  1. #1
    Junior Member
    Join Date
    Feb 2017
    Location
    Norway
    Posts
    4

    Change navbar height on resize

    Hi!

    I want to alter the navbar height property on devies with small screens, so I created a @media rule but nothing changes on resize.

    This is what I have so far:
    Code:
    @media (min-width: @screen-sm-min) {
        .navbar {
            min-height: 20px;
        }
    
        .navbar-brand {
            padding: 8px;
            height: 20px;
            line-height: 20px;
        }
    
        .navbar-brand, navbar-nav li > a {
            line-height: 20px;
            height: 20px;
            padding-top: 0px;
        }
    
        .navbar-toggle {
            margin-right: 18px;
        }
    }
    So what Im a doing wrong?

    Any tips will be highly appreciated
    Last edited by SteinTheRuler; 02-20-2017 at 08:24 PM.

  2. #2
    Junior Member
    Join Date
    Feb 2017
    Location
    Norway
    Posts
    4
    Here's the latest code. Butt its still not doing what I want


    @media (max-width: 768px) {
    .navbar {
    min-height: 20px;
    }

    .main_content_wrapper > .navbar, .main_content_wrapper .navbar-nav {
    display: inline-block;
    float: none;
    position:relative;
    }

    .main_content_wrapper > .navbar-nav > li > a, .navbar-brand {
    padding-top: 0px !important;
    padding-bottom: 0 !important;
    margin: 0px;
    height: 102px;
    line-height: 94px;
    font-size: 28px;
    }

    .navbar-toggle {
    margin-right: 18px;
    }
    }

    I will really appreciate all the help I can get

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •