Exforsys.com
 
Home Tutorials CSS
 

CSS Tutorials : Lesson 11 : Dimensions

 
Category: CSS
Comments (0)

CSS Tutorials : Lesson 11 – Dimensions

In this tutorial you will learn about Cascading Style Sheets (CSS) - Dimensions, Line height, Width and Height.



The dimension properties enable you to increase or decrease the height and width of HTML elements.


Line height

To set the distance between the lines of an element, use the property “line-height”, the value of this attribute can be an absolute value or a percentage.


Example:

p
{
line-height: 0.3cm;
}


This sets the distance between lines to 0.3 cm.


Width:

To control the width of an element, you can use three properties, they are:


• “width”: sets the element width.
• “min-width”: sets the minimum width of an element.
• “max-width”: sets the maximum width of an element.


The value of these properties can be an absolute value or a percentage.


Example:

table
{
width: 100%
}


This sets the width of the



Read Next: CSS Tutorials : Lesson 12 Elements Display



 

 

Comments



Post Your Comment:

Members Please Login
Your Name:*
e-mail ID:(required for notification)*
Image Verification: 
 
 Subscribe    

Sponsored Links

 

Subscribe via RSS


Get Daily Updates via Subscribe to Exforsys Free Training via email


Get Latest Free Training Updates delivered directly to your Inbox...

Enter your email address:


 

Subscribe to Exforsys Free Training via RSS
 

 
Partners -  Privacy and Legal Policy -  Site News -  Contact   Sitemap  

Copyright © 2000 - 2009 exforsys.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape