I have made some code and css, now I'm learning to understand them..
What is the difference if I use margin or padding? What is recommended to use on my <p>
tag?
I'm using margin now, but margin is for the outside of an element, why whould I use that if padding is for the space between the content and border.
So let's start what I have:
<div id="MainContainer">
<section>
<article>
<h1>Title</h1>
<p> text text text text text </p>
</article>
</section>
</div>
My CSS looks like this
#MainContainer {
width:980px;
margin:0 auto;
background-color:#FFF;
}
article {
text-align:left;
color:#000000;
padding-left: 205px;
padding-bottom: 25px;
}
section {
margin-left: 10px;
margin-right: 10px;
height:350px;
}
p {
margin: 10px 0px 15px 0px;
}