Width by percentage : width « CSS Style « XML






Width by percentage



<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/css" href="Style.css" ?>
<review>
  <title>A</title>
  <pullQuote>B</pullQuote>
  <paragraph1>
    C
    <reference>D</reference>
    E
    <keyword>XML</keyword>
    F
  </paragraph1>
</review>

File: Style.css

reference{
   float:left;
   width:20%;
   font-style:italic;
   padding:10px; margin:10px;
   border:solid; 
   border-width:4px; 
   border-color:#CCCCCC;
}

 








Related examples in the same category

1.Width by pixel