Style for paragraph : paragraph « CSS Style « XML






Style for paragraph



File: Data.xml
<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/css" href="Style.css" ?>
<page>
  <image />
  <paragraph>this is a test</paragraph>
</page>

File: Style.css

image {
  display:block;
  background-image:url("logo.gif");
  margin:5px; 
  width:100px; height:100px;}

page {
  display:block;
  padding:10px;
  color:#000000; 
  background-color:#ffffff;
  border-style:solid; 
  border-width:2px; 
  border-color:#000000;
}

paragraph {
  display:block;
  font-family:arial, verdana, sans-serif; 
  font-size:20px;
  padding:20px;
  color:#000000; 
  background-color:#FFFFFF;
}

 








Related examples in the same category

1.quote in a paragraph