Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Help with section element!

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #238256
    majesticchirag
    Participant

    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

    #238258
    Paulie_D
    Member

    The body element has built in margin (usually about 8px).

    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.

    #238261
    majesticchirag
    Participant

    Thanks a lot ….!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.