Working with Percentages

You can express a unit of measurement as a percentage of another property value. You do this using the % (percent) unit.

        <style type="text/css"> 
        p { 
            background: grey; 
            font-size: 200%; 
            width: 50%; 
        <a href="">Visit the website</a> 
        <p>I like <span>HTML</span> and CSS.</p> 
Click to view the demo
  HTML CSS Book 

CSS Value:
  1. CSS Colors
  2. CSS Lengths
  3. Absolute units of measurement
  4. Relative units of measurement
  5. Working with Pixels
  6. Working with Percentages
  7. CSS Unit Calculations
  8. Using CSS Angles
  9. Using CSS Times