

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
CSS height property
The height property is used to set the height of a box. They can take values of a length, a percentage, or the keyword auto.
Example
You can try to run the following code to set height −
<html> <head> </head> <body> <p style = "width:200px; height:50px; border:2px solid green; padding:15px; margin:20px;"> This paragraph is 200pixels wide and 50 pixels high </p> </body> </html>
- Related Questions & Answers
- CSS line-height property
- CSS max-height property
- Animate CSS height property
- Usage of height property with CSS
- The max-height Property in CSS
- The min-height Property in CSS
- Perform Animation on CSS line-height property
- CSS min-height
- HTML Screen height Property
- Add CSS transition effect for both the width and height property
- HTML DOM Object Height Property
- HTML DOM Style height Property
- HTML DOM Video height Property
- Setting Line Height using CSS
- Setting Line Height in CSS
Advertisements