Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

div width issue

0 views
Skip to first unread message

ma bel

unread,
Sep 21, 2003, 9:25:34 PM9/21/03
to
I'm going nuts with this css stuff. The problem occurrs when the browser is
too small to view the content. It shows a scrollbar, but when you slide the
scrollbar over, the header and the footer aren't as wide as the content. It
looks all banged up.

site of problem: http://torr0101.home.comcast.net/ts.htm

Resize the browser so that you cannot see the last input box, then scroll to
the right. See what I mean? Do I need to stick with tables for layout?
Say what you want about tables, but they work.

Please help, thanks.
Tom


Pascal Chevrel

unread,
Sep 22, 2003, 9:08:05 AM9/22/03
to

perhaps you could simplify your cade there :

--
FAQ Mozilla/Netscape 7 en français : http://pascal.chevrel.free.fr/
Foros Mozilla en español : http://pascal.chevrel.free.fr/mozilla

Pascal Chevrel

unread,
Sep 22, 2003, 9:22:41 AM9/22/03
to
Le 22/09/2003 03:25, ma bel a écrit :

No idea, sorry.

Pascal

Marijn Ros

unread,
Sep 24, 2003, 9:02:23 AM9/24/03
to

You might try setting the width of #Header and #Footer
explicitly to 100%. If I recall correctly, DIV is a block-
level element and default to the minimum size required to
fit all inner elements. Percentage sizes should be
relative to the containing block (your outer DIV in this
case).

David Lovell [MSFT]

unread,
Sep 25, 2003, 3:49:37 PM9/25/03
to
Using tables and divs are not mutually exclusive. There are many cases where
using both are preferrable. I would definitely recommend creating a table
with three rows and one cell per row that has the three sections of content
for header,content,footer. Then when the content requires a minimum width,
the other <td> elements will follow the width.

Interingly, a <div style="width:100%"> that is contained only in the <body>
tag will only be as wide as the window since the body is always the width of
the window. However if you contain the div in the table cell, it will always
be as wide as the table since the table can be wider than the body of the
document.

Hope that helps.

--

Thanks,
David W. Lovell

This posting is provided "AS IS" with no warranties, and confers no rights.

If a script was included within this post, use of included
script samples are subject to the terms, specified at
http://www.microsoft.com/info/cpyright.htm"

Please do not send e-mail directly to this alias. This alias is for
newsgroup purposes only.

"ma bel" <monk...@netzero.net> wrote in message
news:pLOdnXNp_OA...@comcast.com...

ma bel

unread,
Sep 25, 2003, 9:29:05 PM9/25/03
to
That is helpful. There are so many people that have told me that creating
pages like that is bad, and have reprimanded me for my choices. I kept
being told that tables are for tabular data and nothing else. Sometimes it
seems, though, that they still need to be relied upon. Thanks for the
sanity check!

T

"David Lovell [MSFT]" <dlo...@online.microsoft.com> wrote in message
news:%23kmyt45...@TK2MSFTNGP11.phx.gbl...

0 new messages