Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

fixed head scrolling body

Status
Not open for further replies.

elmiocid

Technical User
Jul 29, 2007
22
0
0
ES

I´m having problems with scrolling bars! I´m building a table with fixed header and scrolling body. It works fine in IE, but in Firefox and Google Chrome I get an unwanted scrolling bar in the body of the page, as well as in the one in the scrolling area. Below is my code

<body scroll="no" style="margin:0">

<div id="title" style="position:absolute; width:247px; height:29px; z-index:4; left: 70px; top: 20px">
<h2 align="center">Pisos de Alquiler</h2></div>

<div id="price" style="position:absolute; width:126px; height:18px; z-index:5; top: 20px; left: 550px">
<p align="center">My title</p>
</div>
<div id="data" style="position:absolute; height:100%; width:100%; overflow:auto; top:100px">
<table align="center" width="603" height="100%" border="0">

I know the scroll attribute in the body is IE only... how can I get it to work using ccs...I´d rather ccs than javascript because of the warning messages by IE ....

Thanks and Merry Christmas

elmiocid

 
Set overflow: hidden; on the body element.

Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
Webmaster Forum
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top