webmasters webmasters - 1 year ago 97
CSS Question

Adding double quotes to a paragraph with CSS

Lets say I have this paragraph:

<p class="myclass">This is my paragraph</p>

What is the CSS code to add double quotes to this paragraph? (So it will render "This is my paragraph")

.myclass {}

Answer Source

Use pseudo-elements:

p.myclass:before, p.myclass:after {
    content: '"';

Fiddle: http://jsfiddle.net/2bE8j/1/

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download