Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If you style the "s with <code>font-style: italic</code> they appear to closely mimic the smart-quotes, but I'm not sure that you'd be any happier surrounding each and every instance with <code>&lt;em&gt;</code> and <code>&lt;/em&gt;</code>.</p> <pre><code>.magic-quotes {font-style: italic; } &lt;span class="magic-quotes"&gt;"&lt;/span&gt;quoted-text&lt;span class="magic-quotes"&gt;"&lt;/span&gt; </code></pre> <p>Or, possibly if you use the <code>:before</code> and <code>:after</code> psuedo-classes,</p> <pre><code> .stuff-to-magic-quote:before {content: '"'; font-style: italic; } .stuff-to-magic-quote:after {content: '"'; font-style: italic; } &lt;span class="stuff-to-magic-quote"&gt;this text would be quoted&lt;/span&gt;. </code></pre> <p>But then you're not going to get the quotes in the copy &amp; paste.</p> <p>I think you might need some form of JS to achieve what you want; to style the quotes automatically, and allow for their being copy &amp; pasted in non-magic-quoted format.</p> <p>Edited to add that I share your dislike of magic-quotes and their copy &amp; paste issues. And later edited to amend the heinous <code>&lt;em&gt;</code> tags, and make them, instead, <code>&lt;span&gt;</code>s.</p> <p>...it occurs to me, now, that perhaps you could go a little further, but it might be too much typing for too little -real- reward.</p> <pre><code>.original-quotes-open {margin: 0 -2em 0 0; z-index: 0; } .original-quotes-close {margin: 0 0 0 -2em; z-index: 0; } /* the idea of the -2em and z-index is to position the original non-magic quotes behind the text, but not remove them from the document */ span.quoted-text {z-index: 2; /* or higher than the .original-quotes... classes */ span.quoted-text:before {content: "“"; } span.quoted-text:after {content: "”"; } &lt;span class="original-quotes-open"&gt;"&lt;/span&gt;&lt;span class="quoted-text"&gt;This text is quoted&lt;/span&gt;&lt;span class="original-quotes-close"&gt;"&lt;/span&gt; </code></pre> <p>But, honestly, I'm not seeing a positive outcome from the extra effort.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload