gastongr
03-16-2007, 05:41 AM
Hello guys,
I am trying to make a layout with two colums, a menu and the content column.
The menu will have a button that will completely collapse it (like the lateral menu on www.webmastershelp.com ).
I need the content column to fill the empty space left when the menu is collapsed.
The normal way to make the two columns layout would be something like this:
http://www.webmastershelp.com/layout.jpg
The problem is that if i set a right margin to the content area it will not fill the empty space left when the menu is collapsed.
If i put no margin the menu will appear over the content.
So my question is this, ¿is there any way to make it so that the content area will fill all the screen but will not be under the menu, and also when the menu collapses it'll fill the empty space?.
I have done this before but using tables, i want to use divs as css now.
Thanks in advance. :)
Gaston
I am trying to make a layout with two colums, a menu and the content column.
The menu will have a button that will completely collapse it (like the lateral menu on www.webmastershelp.com ).
I need the content column to fill the empty space left when the menu is collapsed.
The normal way to make the two columns layout would be something like this:
http://www.webmastershelp.com/layout.jpg
The problem is that if i set a right margin to the content area it will not fill the empty space left when the menu is collapsed.
If i put no margin the menu will appear over the content.
So my question is this, ¿is there any way to make it so that the content area will fill all the screen but will not be under the menu, and also when the menu collapses it'll fill the empty space?.
I have done this before but using tables, i want to use divs as css now.
Thanks in advance. :)
Gaston