Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS [Solved] Get full width nav to flex dynamically

  • This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #206710
    jknetdesign
    Participant

    Below the slidehshow there is three blue rectangular tabs. This theme has a dynamic breakpoint that is constantly flexing.

    It looks good when it’s full width but when you squeeze browser they break.

    I tried this on a media query
    .ulink { width: 33.15% !important; }

    http://new-publicwaternow.nationbuilder.com/

    #206715
    Shikkediel
    Participant

    This seems to work alright :

    .ulink {
    white-space: nowrap;
    }
    
    #206726
    jknetdesign
    Participant

    I tried to add white-space: nowrap; to the ulink class and no change. Any ideas?

    #206728
    Shikkediel
    Participant

    Looks changed to me, the text is not wrapping anymore. I guess you were referring to something else.

    #206731
    Shikkediel
    Participant

    something else

    That would be the margin-right: 3px on .ulink which is breaking things. The text wrap didn’t look right on smaller screens.

    #206738
    kwerty
    Participant

    Here’s the css rule you might be looking for

    
    .ulink {
        border-right: 3px solid #fff;
        display: block;
        float: left;
        height: 40px;
        text-align: center;
        width: 33.333%;
    }
    
    .ulink:last-child {
        border-right: 0;
    }
    
    

    Thanks.

    #206765
    jknetdesign
    Participant

    Got it! I also needed display: block

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