dcsimg
Login | Register   
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.


advertisement
 

CSS: Spacing and Areas : Page 3

Learn to use proper spacing and make good use of your Web pages.


advertisement

WEBINAR:

On-Demand

Application Security Testing: An Integral Part of DevOps


Height
{height: XXunits/%}
The height property lets you set the height of an element.

Height can be specified using absolute or relative units. Relative units calculate the height of an element using the height of the element's containing block. It's illegal to use negative values for height. The height property cannot be applied to table columns.

Example:



img {height: 150px}

logo

If you are using a CSS-enabled browser, the Project Cool logo has a height of 150 pixels.

img {height: 2cm}

logo

If you are using a CSS-enabled browser, the Project Cool logo has a height of 2 centimeters.

img {height: 50%}

If you are using a CSS-enabled browser, the Project Cool logo is half as tall as this browser window.





Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
×
We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.
Thanks for your registration, follow us on our social networks to keep up-to-date