View Single Post
Old Yesterday, 06:02 PM   #10
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,520
Karma: 21099999
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
Or you can use a very simple technique that works everywhere:

Code:
em em {font-style:normal}
i i   {font-style:normal}
.NameOfYourItalicStyle em, .NameOfYourItalicStyle i {font-style:normal}
This technique can be used because the css is looking for an em inside of an em, or an i inside of an i, or either inside whatever class you use that defines font-style:italic. It is a way to emphasize something by making it different from the surrounding letters/words. Most people would default em to italics but it certainly doesn’t need to… the em could denote a color, or a font size, or a text decoration… anything to emphasize the word.

Eg.
Code:
<p class="mentalspeak">I am emphasizing <em>this</em> word 
within a phrase that is italicized.</p>

CSS:
.mentalspeak {font-style:italic}
.mentalspeak em {font-style:normal; color:red; text-decoration:underline}

RESULT:
I am emphasizing this word within a phrase that is italicized.
That provides a very clean, easy to read (in code view), and simple to code.
Turtle91 is offline   Reply With Quote