⇧
Contact Us
||
Privacy Policy
||
About Us
Home
HTML
CSS
PHP
Java
Program
Interview Ques
Menu ▼
CSS Tutorials
What is CSS
CSS Syntax
CSS Selectors
How to Use CSS
CSS Comments
CSS Properties
CSS Colors
CSS Background Color
CSS Border
CSS Margin
CSS Padding
CSS Navbar
CSS Dropdowns
CSS Image Gallery
CSS Form
CSS Link
CSS List
CSS Table
CSS Buttons
CSS Pagination
CSS Inline Block
CSS Float
CSS Height or Width
CSS Boxmodel
CSS Outline
CSS Text
CSS Fonts
CSS Icons
CSS Position
CSS Overflow
CSS Website Layout
next →
← prev
CSS Height or Width
In CSS
height
and
width
properties is used to set the height and width of an element.
Example:-
div { height: 200px; width: 50%; background-color: powderblue; }
Test it Now
Next Topic
CSS Boxmodel
← prev
next →