0

I'm trying to get speechmarks to appear at the start and end of a quote.

Here's a link to the code (without images):

http://jsfiddle.net/tomperkins/cGDUc/

You can see the grey blocks (I've replaced the speechmark images with grey blocks in this case) I have at the start and end of the quote. The trouble is the closing quote sits on the right hand side.

I'd like the closing speechmark (or grey block) to sit straight after the quote. In this example it would come straight after '...expectation'

All help and tips appreciated!

Thanks in advance,

Tom Perkins

Tom Perkins
  • 499
  • 3
  • 7
  • 16

1 Answers1

0

HTML

<h2>On all levels they exceed our expectation</h2>

CSS

h2:before {
content: "“";
}

h2:after {
content: "”";
}

Alternately, you can use images:

h2:before {
content: url(imgsrc);
}

h2:after {
content: url(imgsrc);
}

Highly simplified example: http://jsfiddle.net/cGDUc/14/

Ben Shoults
  • 150
  • 5