1

I am using Bootstrap 2.3 on my site. I have set the foll css:

body,section{
padding:0;
margin:0;
}

Yet, for the life of me, I can't understand why I m seeing a white dash of the body in between the sections?? The Link

3 Answers3

1

Your <h3> causes that. Put this:

h3{
    margin:0;
    padding:0;
}
Vucko
  • 20,555
  • 10
  • 56
  • 107
  • the h3 is contained inside the section, yet, the margin is overflowing from it...Y? – user2556089 Jul 06 '13 at 11:08
  • 1
    Good [explanation](http://stackoverflow.com/questions/2176520/why-would-margin-not-be-contained-by-parent-element). – Vucko Jul 06 '13 at 11:10
0

Set below style to <h3> tag

margin-top:0px;
Naveen Kumar Alone
  • 7,536
  • 5
  • 36
  • 57
0

another solution

set below style to <section> tag

overflow: hidden;
Po-Ying Chen
  • 1,690
  • 1
  • 12
  • 12