Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.