• Resolved Moira.Akerman

    (@moiraakerman)


    Hi!
    My site is working well with customizr, I´m just wondering one thing. When I narrow down my site a bit to about ipad size the navigation goes down on two rows, and falls down a bit on the slider. I would like it to stay on the same place always. On mobile it´s working fine with the drop down menu.

    I´ve been following these instructions about jquery:
    http://www.themesandco.com/snippet/media-queries-responsiveness/

    I tried to make the link fonts smaller and reduce padding with @media statements
    but when I put my css it doesn´t do anything or it changes it also on other browser sizes. Does somebody know somwthing about this?
    My site: http://www.aegroup.fi

    Thank you in advance!

Viewing 9 replies - 1 through 9 (of 9 total)
  • Are you talking about this?

    @media screen and (min-width: 980px)
    .navbar .nav > li > a {
    font-size: 10px;
    padding: 2px 3px;
    }

    I think you want, “max-width” and not “min-width”, also I suggest to use
    .navbar.notresp instead of .navbar

    Moira, look that you have a loot of unclosed media queries, for example:

    @media screen and (min-width: 980px) {
    .navbar .nav > li > a {
     font-size: 10px;
     padding: 2px 3px;
    
    }
    
    @media screen and (max-width: 979px) {
    .navbar .nav > li > a {
     font-size: 10px;
     padding: 2px 3px;
    }

    Should be (apart from that you need to do some cleaning :P):

    @media screen and (min-width: 980px) {
    .navbar .nav > li > a {
     font-size: 10px;
     padding: 2px 3px;
    }
    }/* close media query*/
    
    @media screen and (max-width: 979px) {
    .navbar .nav > li > a {
     font-size: 10px;
     padding: 2px 3px;
    }
    }/*close media query*/

    So I suggest to better choose the media query you want and close it 😀

    Thread Starter Moira.Akerman

    (@moiraakerman)

    yes I did, but it still doesn´t do anything. I tried many things, for example this:

    @media screen and (min-device-width: 980px) and (max-device-width: 1199px) {
    .navbar.notresp {
    position: relative;
    top: 10px;
    }
    }
    I tried also the jqueries mentioned on the site above, but this is the width where the problem is..

    Thread Starter Moira.Akerman

    (@moiraakerman)

    Ok, now it works a little bit 🙂 It seems everything starts working after I write here..

    rdellconsulting

    (@rdellconsulting)

    We’re trained in extrasensory perception, and plant positive thoughts in the minds of our subscribers 😉

    Moira, this is a mess 🙂 :

    @media screen and (min-width: 980px){ (max-width: 1199px) {
    .navbar.notresp {
    top: 10px;
      }
    .navbar .nav > li > a {
     font-size: 10px;
    }
    @media screen and (max-width: 1199px) {
    .navbar .nav > li > a {
     font-size: 10px;
    }
    .navbar.notresp {
    top: 10px;
      }
    }
    }

    this makes more sense:

    @media screen and (min-width: 980px) and (max-width: 1199px) {
        .navbar.notresp {
            top: 10px;
        }
        .navbar .nav > li > a {
            font-size: 10px;
        }
    }

    Thread Starter Moira.Akerman

    (@moiraakerman)

    Yup, just tried different things 🙂 this kinda works except of the font styling:

    @media screen and (max-width: 1199px) {
    .navbar.notresp {
    position: relative;
    bottom: 50px;
    }
    .navbar .nav > li > a {
    font-size: 10px;
    }
    }
    Is there a way to change the font in that screen size?

    rdellconsulting

    (@rdellconsulting)

    Here’s a general snippet for navbar. I presume you want to change the actual font which would be:
    font-family: Garamond; for example.

    Thread Starter Moira.Akerman

    (@moiraakerman)

    Hey, that was just what I needed! Thank you!! 🙂

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Navigation problem’ is closed to new replies.