Forums

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

Home Forums CSS Sticky navigation bar covering content

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #145144
    nolimit966
    Participant

    Hi there,
    my current website features a sticky navigation bar on the homepage which overlaps 136px (the height of the navigation bar) of the content on the front page which is fine as i have a big slider on the front of the page and its purposly intended design wise, but on the other pages I don’t want the navigation bar to overlap the top of the page ( i just want it to stick when users scroll down). What would be the best method for doing this?

    Here is an image of it overlapping to give you a better example of what i mean:

    http://s21.postimg.org/j8er0ls79/screen.png

    Thank you

    #145151
    Paulie_D
    Member

    On the pages where you have overlap you would need to give the first overlapped element padding-top at least equal to the height of the stick header.

    #145153
    nolimit966
    Participant

    yeah, thats exactly what I attempted to do. The only problem im developing this within WordPress so it shares a common page.php layout so if it is altered the homepage will also change. I will probably have to create a ‘if homepage’ condition in PHP.

    Thank you

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