By demon326@drupal.org on
Hello everybody, i just made my own drupal layout but i'm having some troubles with it.., see the screen below for the problem:
http://img170.imageshack.us/img170/3890/prob2lw5.jpg
like you can see the content is being pushed downwards when i create a node...
i hope that somebody can help
Comments
read about css`s floats,
read about css`s floats, positions etc :S
i already know that stuff,
i already know that stuff, but i want to know what dive causes this problem...
With just an image to go by
With just an image to go by it's hard to say but I think Szklana is right. You should read up on floats...
From what I see you have your right sidebar and content in a container with a fixed width and that the sidebar has a left float. The total width of the sidebar plus the the content is greater than the width of the containet, thereby pushing the content down.
www.opstijgendenevel.nl
issues with floats
Hi there.
I've had this issue a number of times with sites I've worked on that use floats to structure the columns.
There are two possible causes (without seeing the HTML source):
or
A solution we use (but isn't always ideal) is to set the margin left and right for the central <div> at a bit more than the left and right sidebars but NOT float the central <div>. This causes the central content to be constrained by the margins and allows the left and right columns to fit within the margins of the central div.
This solution will work if the cause is the div not fitting but won't fix the issue if you've got a clear set for the central div.
Also in IE if any of the central <div>'s children have a width set to 100% it may also cause the whole div to drop below the left or right column