View Full Version : How to Italic individual words

11-18-2008, 01:14 AM
How do you create a style to italic individual words?

on this site: www.fatcitycafe.net
I have words like the Willamette Week, which is a publication that I want to italicize.

11-18-2008, 01:24 AM
<style type="text/css">

.i { font-style:italic



<p class="i">Text</p>

Add class="i" for each word you want to italicize.

A simpler solution, however, would be to add <i> tags around text.


11-18-2008, 02:10 AM
I didn't know that <i> tags were still used. That did the trick. :)

11-18-2008, 02:53 AM
Use the structural tag em instead of the formatting tag <i>:

<em>I'm italized and at the same time, and I receive a special attention from the spiders</em>

For further reading:

11-18-2008, 03:42 AM
If it is a "citation", <cite> might also work to do that, depending on the semantics involved.

Or use a <span class="some_class" > </span> and set the styles as per #2 above for the .some_class

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum