View Full Version : what do these mean?


tkdgurl927
04-09-2004, 01:50 AM
what do these positioning on padding, margin-left,width,etc. (all the things below) like what does it do and mean? which one moves the text up, down, right, and left? can u pls explain what happens when you put higher and lower numbers in each one? where do they move the text or whatever? can u explain what they all mean pls?
thanks soo much! :D
body
{ margin-top: 0;
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
padding-left: 0;
padding-right: 0;
}

#menu {
position: absolute;
right: 5px;
padding: 0px;
width: 150px;
}

#content {

margin-left: 0px;
padding: 0px;
margin-right: 200px;
}

Dude128
04-09-2004, 04:01 AM
margin is the space outside of an element- like the distance from other things. higher numbers=more space, as with most attributes. padding is the amount of space within an element, such as in a div, the amount of space between the edge of the div (where the border would be) and whatever is inside it. the top, bottom, left, right stuff is just the different settings for each side of the element.