You are here: Div scrollbar overlapping lower part of table « HTML « IT news, forums, messages
Div scrollbar overlapping lower part of table

Posted by phl on 08/09/07 00:53

Hello

I have div element and within it, I have a table. Basically I want to
use the Div to restricit the table to a certain width, and if it goes
over this width, the user is then presented with a scroll bar.
Everything works fine, except in IE7, when the table renders over a
certain amount of rows, and the Div displays the scroll bar. The last
row of the Table is obscured by the scrollbar created by the div. It's
almost like the div did not create extra height for the horizontal
scroll bar it displaying. The same problem does not happen in Firefox.
The below is the html, I am using:

<div style="width: 100px;overflow-y: hidden;overflow-x:
auto;position:relative;">
<TABLE width="100%" align="center">
<TR>
....
....
</TR>
</TABLE>
</div>

Can someone please explain whats going on and a possible work around?

Cheers
-P

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация