Forums

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

Home Forums CSS Dynamic navbar

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #242203
    AlennGK
    Participant

    Hello I would like to ask how you solve problem with overlaping navbar. I know that there is alot of articles about that, but nothing works perfectly for me.

    I have dynamic nav-height (txt + 1% ) I don’t want to use js.

    .nav {
    max-width: 1200px
    margin: 0 auto
    padding-top: 0.25%
    padding-bottom: 0.25%
    color: $textW
    font-weight: 500
    background-color: $darkB
    z-index: 1000
    border-radius: 0 }

    So how can I set section :after to have exactly same margin-top as the nav?

    #242205
    Shikkediel
    Participant

    What section would that be?

    #242207
    AlennGK
    Participant

    It is header, but I am planning to do another on the side in body, but maybe that one will push content sideways… so header it is.

    #242208
    Paulie_D
    Member

    If it’s dynamic you will need javascript. There is no other option.

    #242209
    AlennGK
    Participant

    Ok thank you.

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