CSS Margins
CSS Margins
CSS Margins
Margins
Margins are used to create space around elements, outside of any defined borders
he CSS height and width properties are used to set the height and width of an
element.
The CSS max-width property is used to set the maximum width of an element
CSS height and width Values
The height and width properties may have the following values:
•auto - This is default. The browser calculates the height and width
•length - Defines the height/width in px, cm, etc.
•% - Defines the height/width in percent of the containing block
CSS height and width Examples
• The text-align-last property specifies how to align the last line of a text
• p.a {
text-align-last: right;
}
p.b {
text-align-last: center;
}
p.c {
text-align-last: justify;
}
Text Direction