Hello dhl,
The way it's coded now
all p.author_desc text is italic. Remove the
font-style: italic; from your CSS and then only the text inside
<i></i> is in italic.
Since inline styles, like your
<i>text</i>, override linked or attached CSS the only way to make that italicized text normal would be to remove the
<i></i> from the markup.
Not even
!important seems to be able to overrided inline styles. See
!important here.
See an example -
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
html, body {
margin: 0;
background: #FC6;
font: normal 1.3em Arial, Verdana, sans-serif;
}
#container {
width: 750px;
padding: 50px 25px 400px;
margin: 30px auto;
background: #999;
}
p.author_desc {
margin: 20px 0 0;
padding: 0;
color: #a7a7a7;
text-indent: 0;
font-style: normal !important;
}
</style>
</head>
<body>
<div id="container">
<p class="author_desc">
This is my body text that is italicized, <i>but this is regular text</i>. Now we're back to italicized again.
</p>
<!--end container--></div>
</body>
</html>