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

Home Forums JavaScript Positioning issue with JQuery (I want content div to scroll under pageskin)

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #184793

    Hi people.

    I have a pageskin ad as a background-image which is fixed to the top of the screen when is scrolling.

    When I scroll the page the content div flows over the pageskin image and it looks weird. So, I want content div to flow under the pageskin image.

    Is there any one to help me with jQuery to tell main-content to stay 50px far from the top of the screen when scrolling or flow under the image?


    It would be easier if you recreated this in Codepen so we look at the individual working parts without having to rummage through the site using developer tools.

    Especially the JS/JQ you are using.


    Well, thank you very much for the advice… A created one here’s the link of it:

    Thank you again.

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