PDA

View Full Version : Sidebar moves over main text when resizing window.


Ruby_Chick
01-19-2006, 04:16 PM
What is happening is I have a right sidebar that when you resize the window and make it smaller it just slides over the main text of the page. I have tried to put them on the same z-index...tried all the positioning values...and changed the values of the containing boxes and have looked through the css and am not turning up anything that would be overriding it. Needless to say none of that has worked . So I say as calmly as possible....HELP!!!!!!! :)

_Aerospace_Eng_
01-19-2006, 04:55 PM
Well without seeing your code or a link, the only suggestion I can give you is to not use absolute positioning for your sidebar. You should rather float the side bar to either the left or the right. It must come before your content. Give your content a margin-left or margin-right that is at least equal to the width of your side bar. Here is an example. http://bonrouge.com/2c-hf-fluid.php and http://bonrouge.com/2c-hf-fluid(r).php