Please visit our sponsors !
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 |
Jump to: Top of Page
or HOME or
Printer friendly page
Search W3Schools:
What Others Say About Us
Does the world know about us? Check out these places:
Dogpile
Alta Vista
MSN
Google
Excite
Lycos
Yahoo
Ask Jeeves
We Help You For Free. You Can Help Us!
W3Schools is for training only. We do not warrant its correctness or its fitness for use.
The risk of using it remains entirely with the user. While using this site, you agree to have read and accepted our
terms of use and
privacy policy.
Copyright 1999-2002 by Refsnes Data. All Rights Reserved
|