Forum Moderators: not2easy

Message Too Old, No Replies

Table and div width problem.

         

Anka

9:46 am on Oct 21, 2004 (gmt 0)

10+ Year Member



Hello all. I have a problem.
I hope, that someone is able to help.

I have a page with header and content divs.
Both of them have 100% width in css file.
But content div contains table, which width is more than screen width (about 1400px), so scrollbar appears
at the bottom of the window.
So the content div fits the table width and becomes wider,and how can I make header div wider too?
When scrolling page to the right, header div breaks, while content div endures.
And I can't put fixed width to header div, because I use the same header div in other pages.

fish_eye

7:27 am on Oct 22, 2004 (gmt 0)

10+ Year Member



I'm not sure I understand the problem but ....

I have at times put an extra row in the same table (as your header in this case) with <img src="very-small.gif height="1" width="1400" alt="_"> and centered the header across the table.

It sounds like you are using a template or perhaps you are using php includes to build your site and you use the header in a number of places. In that case it may be difficult and you may need to redesign your template / file structures.

A bit bodgey but it works.

Hope that helps?

Anka

8:53 am on Oct 22, 2004 (gmt 0)

10+ Year Member



Thank you. But I don't want to use table for header. Header is div in my case. I use it in JSP pages with Struts tiles.
When I put header and content div to different rows of one table, everything works, but it is said, that using tables for layout is stupid.... :(

eaguilar

8:50 pm on Oct 29, 2004 (gmt 0)



Did you find the solution? Cause I have the exact same problem...