So basically, as the name suggests, pseudo elements are not exactly present in the markup, but we can still attach css properties to those elements.
for example, we can attach different properties to -
- First letter of the node
- First line of the block node
- Pseudo element before actual node
- Pseudo element after actual node
/* CSS code for blockquote */
blockquote:before {content: url(start_quote_image_url)}
blockquote:after {content: url(end_quote_image_url)}
blockquote:before {content: url(start_quote_image_url)}
blockquote:after {content: url(end_quote_image_url)}
- Please Note:
- Html contents must be inline to work properly.
And of course, as usual, this doesn't work in IE6/7. The good news is – they are supporting it in IE8 beta.
chadar trek
ReplyDeletechadar trek
chadar trek