View Full Version : Box positioning


remus_no_miko
12-20-2004, 05:46 PM
Not sure how much sense this will make, but I'll try, anyway...

I have four div tags on my stylesheet: #header, which comes first, #content, and two div's within #content, #main (which acts as the main content of a given page) and #sidebar (which acts as a navigation menu).

#main and #sidebar have float properties, #main being left and #sidebar being right. The problem is that the more text/images/etc. that goes into main, the navigation menu gets pushed farther and farther down. It does this in all browsers that I have tried (NS, IE 4.0+, Firefox, Mozilla, Opera 7). Is there any way to anchor #sidebar so that the contents won't move with the contents of #main?

Thanks in advance! ^_^

Merike
12-20-2004, 06:01 PM
Do you have an example online?
Or could you post your html and css?

remus_no_miko
12-20-2004, 06:05 PM
Do you have an example online?
Or could you post your html and css?

Yes, sorry ^_^u The URL is http://www.midnitetrysts.com/main.htm

You can view the CSS at http://www.midnitetrysts.com/style.css

Merike
12-20-2004, 06:07 PM
I recently made similar layout so I think it might be that your main div is too wide, try making it smaller by about 5 pixels at time and it should look right.

remus_no_miko
12-20-2004, 06:08 PM
Great, I'll try that ^_^ Thanks bunches!