CSS Dimension Properties

Control The Size Of HTML Elements With CSS

You can control the size of html elements with css properties.

CSS Code:


#header {
  width : 800px;
  height : 65px;
}

li {
  height : 25px;
  width  : 115px
  line-height : 25px;
}
	

By declaring the width and height of html elements you can control the layout of your web pages. Review our CSS Properties list to see more css dimension properties.