1 Margin (and padding) Tue Nov 23, 2010 11:58 pm
Unknown Data
Registered Member
Margin (and padding) Learn CSS - part 12 |
Introduction We are going through following steps, when we are learning about the margin: • Margin-top • Margin-right • Margin-bottom • Margin-left • Mergin Margin-top Margin-top is simple, we are writing it like this, the value should always contain a number like height, width etc.
The Margin-right is also very simple, and it's done like the Margin-top.
Agian is it the same indication like the previous.
The last point is Margin-left and that's exactly the same.
It's possible to merge the margin, it can be done in following sequel. margin-top | margin-right | margin-bottom | margin-left We follow the clock by starting with Margin-Top and ends with Margin-left. And example could be like this.
Remember following rules, it could be noet. • If only one value is written, will it apply to all sides (top, right, bottom, left). • If two or three values is written, will the missing value be copid from the opposite side. Remember! I won't post a tutorial about padding, because it's actually the same as the margin. To use the padding, do you just have to replace the word margin with padding. This was a very simple tutorial, and we can quick switch to the next tutorial. |
Notice : This tutorial is copyrighted by WebArtz Forum. You may not publish it on anywhere without written permission from the administrators. |