Wierd CSS Problem

Associate
Joined
1 May 2006
Posts
810
Location
Bristol, UK
Evening all.

I've got a little problem with the sidebar on my latest concoction (?spelling). The sidebar itself is a left-floated, relative element and everything works fine, see Here. However, as soon as I stick a table into said sidebar....See for yourself. The associated CSS file can be found Here.

If anyone has any ideas on how to fix this I'd really appreciate it. I've been looking at this for an hour and can't find anything wrong with the code or any ways to fix it.

Many thanks in advance,
Freakish_05
 
I get the feeling you need to create an extra div (or a div within a div) to keep the main content where it is which will need some tweaking.
 
In your first example, everything is inside of your container div.
In the second example, you've closed the container div too soon. Top, Nav and left are all within container but the main div is sitting there all on its own with nothing but some side margins to control it's width.

At least that's my guess after looking at it for about 10 seconds. Haven't tested it either so it may or may not be your problem. Results may vary :)
 
Last edited:
Back
Top Bottom