Availability: |
| |||||||
Property/method value type: | String primitive | |||||||
JavaScript syntax: | - | myStyle.content | ||||||
CSS syntax: | content: someContentRef | |||||||
Argument list: | someContentRef | A URL, string or value to be placed before or after an element |
If you have a generic effect you want to achieve that goes beyond what is possible with a simple property or style attribute and can only be accomplished by additional fragments of HTML, this property provides a way to add fragments of HTML before and after an element.
The string to be assigned to this should be a valid fragment of CSS text that uses the before: and after: pseudo elements to define leading and trailing fragments of HTML.
This is a relatively new part of the CSS standard and does not yet have a well defined JavaScript binding.
Prev | Home | Next |
style.columnSpan | Up | style.counterIncrement |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |