ZVON > References > CSS2 Reference

Go to Standard
Property:content
Percentages: N/A
Media: all
Applies to: :before and :after pseudo-elements
Initial: empty string
Value: [ <string> | <uri> | <counter> | attr(X) | open-quote | close-quote| no-open-quote | no-close-quote ]+ | inherit
Inherited: no

Examples:



     <person>
          <name>Gandalf</name>
          <role>wizard</role>
     </person>
View
name {display: block}
name:before {content: "Name:"}
role {display: block}
role:before {content: "Role:"}


     <person role = "wizard">Gandalf</person>
View
person {display: block}
person:before {content: attr(role)}


     <person>
          <name>Gandalf</name>
     </person>
View
name {display: block}
name:before {content: url('person.xml')}


     <heroes>
          <person>Gandalf</person>
          <person>Frodo</person>
          <person>Sam</person>
          <person>Aragorn</person>
     </heroes>
View
* {padding-left: 20px}
heroes {counter-reset: hero 0}
person {display: block}
person:before {content: counter(hero) "."; counter-increment: hero}



_____________________________________________
Reference Search | Sitemap | XML Glossary       ZVON | Systinet




Related sites:
  • dotNet Slackers - Your latest resource for ASP.NET
  • Dotnet Spider - Outsourcing and Offshore software development in India
  • XML - Xselerator, XSL Editor, BizTalk Utilities, XML Tutorials, Learn XML
  • Planet Source Code - The largest public source code database on the Internet
water softener MSN Alojamiento Web UNLIMITED Web Hosting by HostDepartment UK Domain Names
UK Domain Names VoIP Internettelefonie Hosted Exchange, SDSL VoIP Internettelefonie AT VoIP Internettelefonie DE