Hia,

I am trying to redesign my css based design. I now have a header, left floated column, main colum, and a footer that fits along the bottom (I was pleased to get this far).

However when I have a table in the main column, it is liable to break out beneath the left column when the browser window is small (in IE only). This is occuring without fixed widths in the table.

To see the type of page I'm trying to fix, without the floated left column, it is here:
an event list

I have tried at length to find the answer and would greatly appreciate any fresh ideas.

You can style your table elements with "nowrap" to force the table to be a certain width. That way instead of collapsing when the window is tiny, users will have to scroll instead.

td { white-space: nowrap; }

You can style your table elements with "nowrap" to force the table to be a certain width. That way instead of collapsing when the window is tiny, users will have to scroll instead.

td { white-space: nowrap; }

That didn't quite work (forcing the table out), but it led me to straight to the solution which was

table {
   table-layout: fixed ;
}

Wow! That's a huge relief. Many many thanks!

hmmm I think that might need checking in other browsers/versions

I discovered it was also necessary to add this when the content was longer

td {

   overflow: visible ;
}

Couldn't you simply give the table a fixed width?

Couldn't you simply give the table a fixed width?

But I wanted to keep site as fluid as possible...
I've now gone through joomla and phpBB to remove much of the fixed widths of the <td>s...

You can use link above and navigate about. I've even managed a css footer:)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.