when you insert a
element, by default, a margin on top and bottom will happen = 1px
in a class,
you can type for header or in a group
h1,p {
margin:0
}
p{
margin-top:10px
}
this is an example of how you can control your margins, istead of using your predefined margins.
use display block in the class if you get an inline tage like strong
for image
img{
margin:10px
}
body}
margin:0;
bg color;
you can als specify margins (top, right, bottom and left)
No comments:
Post a Comment