Page 1 of 1

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

Posted: Wed Nov 10, 2010 9:47 pm
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

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

Posted: Thu Nov 11, 2010 11:48 am
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