Open Directory Site CSS Tutorials

ASP | XML | VBScript | JavaScript | ADO | CSS | XMLDOM | PHP | Operating Systems

Home >> CSS >> CSS Dimension Properties

CSS Dimension Properties

 

The Dimension properties allow you to control the height and width of an element. It also allows you to increase the space between two lines.

Examples

Set the height and width of an image

This example demonstrates how to set the height and width of an image.

Increase the space between lines

This example demonstrates how to increase the space between the lines.

Dimension Properties:

NN: Netscape, IE: Internet Explorer, W3C: Web Standard

Property Description Values NN IE W3C

height Sets the height of an element

auto length % 6.0 4.0 CSS1

line-height Sets the distance between lines

normal

number length % 4.0 4.0 CSS1

max-height Sets the maximum height of an element

none

length % CSS2

max-width Sets the maximum width of an element

none

length % CSS2

min-height Sets the minimum height of an element

length % CSS2

min-width Sets the minimum width of an element

length % CSS2

width Sets the width of an element

auto

% length 4.0 4.0 CSS1

 

Cheap Web Hosting Articles - Web Site Design & Web Hosting Tutorials - Domain Hosting