XML/CSS Style/paragraph

Материал из Web эксперт
Версия от 08:26, 26 мая 2010; Admin (обсуждение | вклад) (1 версия)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

quote in a paragraph

File: Data.xml
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="Style.css"?>
<page>
  <pullQuote>
    line1
    line2
    line3
  </pullQuote>
  <paragraph>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam
   nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut
   wisi enim ad minim veniam, quis nostrud exercitation ulliam corper suscipit
   lobortis nisl ut aliquip ex ea commodo consequat. Duis autem veleum iriure dolor
   in hendrerit in vulputate velit esse molestie consequat, vel willum lunombro
   dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio
   dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te
   feugait nulla facilisi. 
  </paragraph>
  <paragraph>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam
   nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut
   wisi enim ad minim veniam, quis nostrud exercitation ulliam corper suscipit
   lobortis nisl ut aliquip ex ea commodo consequat. Duis autem veleum iriure dolor
   in hendrerit in vulputate velit esse molestie consequat, vel willum lunombro
   dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio
   dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te
   feugait nulla facilisi. 
  </paragraph>
</page>
File: Style.css
paragraph {
  display:block;
  padding:10px;
  border:solid 2px #A3A3A3;
  margin: 10px;
}
pullQuote {
  float:right;
  width:20%;
  font-style:italic;
  border:solid 1px #CCCCCC;
  padding:10px;
  margin:10px;
}



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;
}