Setting List Properties : list « CSS Style « XML






Setting List Properties


File: Data.xml 
<?xml version="1.0" ?>
<?xml-stylesheet type="text/css" href="Style.css" ?>
<lists>
  <employees>
    <name>name 1</name>
    <projects>
      <project>
        project 1
      </project>
      <project>project 2</project>
    </projects>
  </employees>
</lists>

File: Style.css
 
lists {
   display:block
}

name {
   color:red
}

projects {
   display:block
}

project {
   display:list-item;
   list-style:url(mini.jpg) inside
}

 








Related examples in the same category

1.A bulleted list created using CSS
2.display as list