Width and height
With width and height attribute, you can start to work on a layout and control the look of the layout. Example:
CSS:
div { width:100px; height:100px; background-color:#333; } HTML: <body> <div></div> </body> |
|
CSS:
div { width:30%; height:100px; background-color:#333; } HTML: <body> <div></div> </body> |
|