Padded Content : padding right : Box Model HTML CSS TUTORIALS


HTML CSS TUTORIALS » Box Model » padding right »

 

Padded Content


 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title></title>
<style type="text/css" media="Screen">
* .padded-mild {
  padding-left: 1em;
  padding-right: 1em;
  line-height: 1em;
}

* .padded-emphasized {
  padding-left: 2em;
  padding-right: 2em;
  line-height: 2em;
}

* .padded-strong {
  padding-left: 3em;
  padding-right: 3em;
  line-height: 3em;
}

* .padded-extreme {
  padding-left: 4em;
  padding-right: 4em;
  line-height: 4em;
}

</style>
</head>
<body>
 
<p><br /><span class="padded-mild">a letter...</span> 
    <br /><span class="padded-emphasized">a word...</span> 
    <br /><span class="padded-strong">a phrase...</span>
    <br /><span class="padded-extreme">a paragraph...</span>
</p> 

</body>
</html>

 



HTML code for linking to this page:

Follow Navioo On Twitter

HTML CSS TUTORIALS

 Navioo Box Model
» padding right