HighDots Forums  

<form> element defeats overflow

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss <form> element defeats overflow in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
semifor
 
Posts: n/a

Default <form> element defeats overflow - 01-05-2007 , 02:50 PM






I've been using a simple technique that works adequately, for me, to
restrict a web page to the viewport. A typical page will have a
header, a table wrapped in a <div> with "overflow: auto", and some
footer information.

A very pared down example with borders around the various elements for
demonstration lives (temporarily) here:
http://www.questright.com/tmp/css-scroll-table.html

This works well in IE and adequately in Mozilla and Firefox.

However, if I introduce a form element which includes the table,
Mozilla based browsers (e.g., Mozilla 1.7.8 running on my Debian/sarge
desktop) does not display as intended. The <div> wrapping the table
expands to the full height of the table pushing the bottom of the table
and the footer out of the viewport. IE still handles it as intended.
The same page with <form> element introduced resides here:
http://www.questright.com/tmp/css-sc...able-form.html

I need a (hopefully simple) technique that works adequately across
browsers to accomplish the goal.

-Marc


Reply With Quote
  #2  
Old   
Ben C
 
Posts: n/a

Default Re: <form> element defeats overflow - 01-06-2007 , 06:00 AM






On 2007-01-05, semifor <marc.mims (AT) gmail (DOT) com> wrote:
Quote:
I've been using a simple technique that works adequately, for me, to
restrict a web page to the viewport. A typical page will have a
header, a table wrapped in a <div> with "overflow: auto", and some
footer information.

A very pared down example with borders around the various elements for
demonstration lives (temporarily) here:
http://www.questright.com/tmp/css-scroll-table.html

This works well in IE and adequately in Mozilla and Firefox.

However, if I introduce a form element which includes the table,
Mozilla based browsers (e.g., Mozilla 1.7.8 running on my Debian/sarge
desktop) does not display as intended. The <div> wrapping the table
expands to the full height of the table pushing the bottom of the table
and the footer out of the viewport. IE still handles it as intended.
The same page with <form> element introduced resides here:
http://www.questright.com/tmp/css-sc...able-form.html
In this version the form is the containing box for the tableContainer,
and since the form is height: auto, the tableContainer's height of 70%
no longer makes sense and is converted to auto.

If you give the form a height as well, then the percentages can be
resolved and the tableContainer will be 70% of that height.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.