It represents by <percentage > takes a number as a parameter. It is used to define the relative size to the parent size. With the help of this, you can adjust all the HTML-CSS elements. In CSS, many properties that take a percentage as parameters such as padding, width, height, margin, and font-size.
It takes a number as parameter followed by percentage sign(%).
The number can be positive and negative but some properties do not accept negative percentages.
Note: No space between number and percentage sign(%) is acceptable.
- How to override the CSS properties of a class using another CSS class ?
- Difference between bootstrap.css and bootstrap-theme.css
- CSS Value | Angle
- CSS | [attribute$=value] Selector
- CSS | [attribute=value] Selector
- CSS | [attribute*=value] Selector
- CSS | [attribute|=value] Selector
- CSS | [attribute~=value] Selector
- CSS | [attribute^=value] Selector
- CSS Value Resolution
- CSS | Value Integer
- CSS Value Inherit
- CSS Value | Unset
- CSS Value | Initial
- CSS Value Time
- CSS Value String
- CSS Ratio Value
- How to get hex color value of RGB value ?
- How to change an element color based on value of the color picker value using onclick?
- How to push a value based on matched value in PHP ?
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.