08-CSS Dimension Properties

0
13

The CSS dimension properties allow you to control the height and width of an element.

Setting height and width

The height and width properties are used to set the height and width of an element.

  1. div {<br />width: 5000px;<br />height: 1000px;<br />border: 5px solid #73AD21;<br />}<br /></style>
  2.  
  3. &nbsp;
  4. <h2>Set height and width of an Element given here:</h2>
  5. <div>This div element has a height of 1000px and a width of 5000px.</div>
  6. &nbsp;

Set height and width of an Element given here:

This div element has a height of 1000px and a width of 5000px.

 

Facebook Comments
(Visited 16 times, 1 visits today)

LEAVE A REPLY

Please enter your comment!
Please enter your name here