Jump to content

Floating Header & Menu


Sweets287

Recommended Posts

I have a header and a menu down the left setup by an include on my website. And a table with various text and images between them. Is there any way where I can keep the header and menu in the same place while I use the browser scroll bar to scroll down the text and images, I can put an extra scroll bar in the table but it looks awful with two scroll bars. Any Ideas?

Link to comment
https://forums.phpfreaks.com/topic/78261-floating-header-menu/
Share on other sites

create a div with a fixed width and fixed height and set the overflow to auto.

 

example:

 

<div style="width:500px;height:300px;overflow:auto;display:block;border:solid 1px #000000">
<table width=100% height=100% align=left valign=top border=0>
<td>
<img src="whatever.jpg" width=250 height=200>
</td>
<td align=left valign=top width=50%>
text content here
</td>
<tr>
<td width=50%>
<img src="whatever.jpg" width=250 height=200>
</td>
<td align=left valign=top>
text content here
</td>
</tr>
</table>
</div>

Link to comment
https://forums.phpfreaks.com/topic/78261-floating-header-menu/#findComment-396411
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.