basketkase999
17 Mar 2011, 08:06 PM
So I am working on my first Drupal Theme and run into a little problem. I want to have a 2 column layout under my menu. I know I can have a wrapping div and float the 2 divs inside that div. There are 2 issues I am having:
1)Right now, "content" doesn't have a width set, but I cant get it to fill the full 880 px that are left.
2)I don't know how to set it so that "content" would stretch to the full 980 pixels if my php conditional statement remove "right".
This is what I have now, where right div has width of 100px. Wrapper is 980px. Content should be 880px.
<div id="wrapper">
<div id="content">
Some Content ...
</div>
<div id="right">
Some other content...
</div>
</div>
If I were to do this:
<div id="wrapper">
<div id="content">
Some Content ...
</div>
</div>
I would want content to automatically resize to 980px.
CSS has both divs inside the container floating left.
Thoughts?
1)Right now, "content" doesn't have a width set, but I cant get it to fill the full 880 px that are left.
2)I don't know how to set it so that "content" would stretch to the full 980 pixels if my php conditional statement remove "right".
This is what I have now, where right div has width of 100px. Wrapper is 980px. Content should be 880px.
<div id="wrapper">
<div id="content">
Some Content ...
</div>
<div id="right">
Some other content...
</div>
</div>
If I were to do this:
<div id="wrapper">
<div id="content">
Some Content ...
</div>
</div>
I would want content to automatically resize to 980px.
CSS has both divs inside the container floating left.
Thoughts?