View video tutorial
CSS Dimension
CSS
The dimension property allows controlling the width and height of an element.
CSS dimension properties
CSS has several dimension properties that allow controlling the width and height of an element.
The following properties are mostly used to control the width and height of an element.
heightwidthline-heightmax-heightmax-widthmin-heightmin-width
Click on the "Try it Now" button to see how it works.
Sample Code
Copy each file contents and paste it to your own project and run to see the final output
Click on the "Try it Now" button to see how it works.