Jump to content

show content under fixed div


scarhand

Recommended Posts

i have a div i want at the top of the page to scroll with the page

 

the problem is that it is overlapping the top content, how do i make it so that the top content shows under the div before it starts scrolling?

 

<div style="background-color: #dfdfdf; position: fixed; width: 100%;">
fixed content
</div>
<div>
this content is being overlapped by the fixed div and therefore needs to be pushed down somehow
</div>

Link to comment
https://forums.phpfreaks.com/topic/152198-show-content-under-fixed-div/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.