Build a Tribute Page - White space between elements

Build a Tribute Page - White space between elements
0.0 0

#1

my pen

Hi all,

I am trying to create my page, but for some reason, there is a small white spacing between my sections when margin and padding are set to 0. The only way to get rid of it is to give the elements a negative top or bottom margin. Am I missing something?


#2

It’s caused by the vertical margins of the block elements within the green <div>s (the headings and the lists, for example). They can “leak out” of their containers. Setting their top/bottom margins to 0 is an option.


#3

That got it! Thank you!


#4

use the following code in css file:->
body{
white-space :none;
}