Adding some class in <em> tag, or editing them

Skinning and designing Serendipity (CSS, HTML, Smarty)
Post Reply
Sasni
Regular
Posts: 18
Joined: Wed Nov 10, 2010 9:36 pm
Location: Poland
Contact:

Adding some class in <em> tag, or editing them

Post by Sasni »

I want to add in <em> some class becouse i want edit them. where i can find <em> tag in css? And or is this possible?

i created local style like this: <em style="padding: 0px 3px 0px 3px;
border: 1px dotted #aaaaaa;
background: #FDFDFD;
font-family: "Courier New", Courier, monospace;
font-style: normal;
white-space: nowrap"> something <em>

But I want include this code into some css file

I'm from poland, sorry for my language
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: Adding some class in <em> tag, or editing them

Post by yellowled »

Sasni wrote:But I want include this code into some css file
Just add this to your CSS file:

Code: Select all

em {
    background: #fdfdfd;
    border: 1px dotted #aaa;
    font-weight: "Courier New", Courier, monospace;
    font-style: normal;
    padding: 0 3px;
    white-space: nowrap;
}
However, judging only from the styles applied to em here, it really sounds as if pre or code were the semantically correct element you're looking for.

YL
Post Reply