css - Make as wide as page -


Assume that I have & lt; Div & gt; ( #container ) which is set to 960px for its width is & lt; Div & gt; Inside , I have another & lt; Div & gt; I want to make the ( #drawer ) page window as broad So basically, I have and

gt; & Lt; Div & gt; Within one & lt; Div & gt; which will be used by his parents & lt; Div & gt; is more comprehensive:
  & lt; Div id = "container" & gt; // Set 960 px & lt; Div id = "drawer" & gt; // I like it to be as wide as window & lt; / Div & gt; & Lt; / Div & gt;   

CSS:

  #content {top: 200px; Status: Completed; Width: 940px; Padding-bottom: 100px; } # Drawer {???? }   

--- Update ---

Hey everyone,

Thanks for all the answers I think I have a bit of your answer Make it easy to see some kind of visual description below. I hope it helps!

http://f.cl.ly/items/0n2C0B032B1C3i2G390y/ Div.png

Well both of you can set it if you have deployed it completely. This way you can still use padding directly on #drawer if you want.

  #container {top: 200px; Width: 940px; Padding-bottom: 100px; Background color: rgb (255,0,0); } #Drawer {Status: Absolute; Correct: 0 pixels; Left: 0px; Background color: rgb (0, 255,0); }    

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

memcached - Django cache performance -

java : convert string value to int -