473,386 Members | 1,835 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

<form> element defeats overflow

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 <divwith "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 <divwrapping 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 <formelement 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

Jan 5 '07 #1
1 3867
On 2007-01-05, semifor <ma*******@gmail.comwrote:
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 <divwith "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 <divwrapping 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 <formelement 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.
Jan 6 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Sims | last post by:
Hi, This will validate, (http://validator.w3.org/) <form method="POST" action="" name='xForm' style='background:inherit;'> <table style='background:inherit; width:100%;'> <tr width=80%> <td>...
7
by: bc9am | last post by:
Hi, I'm having problems with the <form> tag creating some unwanted whitespace. I did a search on this forum and came across this link: http://www.cs.tut.fi/~jkorpela/forms/extraspace.html ...
2
by: Gram | last post by:
Hello, Can anyone help with the following. I have a search option on a site, using a form, but the FORM element throws off all the layout. Is there a way to make a search work, without using...
4
by: Howard Jess | last post by:
In Opera 8.01 (Linux; Build 1204) and in Opera 7.54 (Windows XP; Build 3865), my form disappears from the HTML markup (below). To summarize: 1) In a <script> block in the <head> I create a form...
10
by: Phlip | last post by:
HTMListas: (Apologies for I can't Google for this - too many common words.) I have a <form> tag. It thinks I want a <p> break before and after the form. I don't. (My forms are sneaky and...
9
by: Warren Post | last post by:
At <http://snow.prohosting.com/srcopan/src/search.html> I have a simple form, using the following code provided by my site search provider: <form method="get"...
6
by: snacktime | last post by:
I've searched and searched and have not found a solution to suppress the margin on form or href tags so that there is no space before or after the tag. The only way I have found to do this is to...
4
by: rob c | last post by:
This is a minor thing and only appears in IE (so far), but I'd like to know to correct it (if possible). Whenever I use a form on a webpage, Explorer always leaves a blank line following the...
4
by: Magnus Warker | last post by:
Hello group, I am producing a form within a table: <table> <tr> <td> <form> ... </form>
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.