Suppose there are 2 nested divas
<div id="wrapper"><div id="center"></div></div>
#wrapper
takes up the whole screen#center
inside it, and should have the same indentation on both sides of it, even when the screen is reduced or enlarged
How can I make a #center
div #center
that it occupies the middle in #wrapper
, having (2 times less width) at the same time so that it has the same indents from #wrapper
.
In short, if it will be easier, go to Facebook and there with div class gradientContent. How to do also?