Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Styling i and em tags?

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #42768
    Rugg
    Participant

    Hello,

    Is it considered bad practice to style the i and em tags in css?

    Here is an example:



    i {
    font-family: 'Times New Roman', serif;
    font-style: italic;
    }

    em {
    font-family: 'Times New Roman', serif;
    font-style: italic;
    color: red;
    }

    #124826
    TheDoc
    Member

    I wouldn’t necessarily call it ‘bad practice’. I’d say you might want to be more specific than just outright `em { }`. Maybe you want to do something like `.rte em { }` (rte == rich text editor).

    #124831
    TheDoc
    Member
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.