The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › Help with section element!
Hello Sir,
I wanted to know how to remove the white spaces coming on the left and right of my section element…
Thanks in Advance.
http://codepen.io/majesticchirag/pen/mVZppQ
The body element has built in margin (usually about 8px).
body
Just reset it..either explicitly like:
body { margin: 0; }
or a more common universal reset
* { margin: 0; }
If you google “CSS Reset” you’ll find something like this is usually included.
Thanks a lot ….!