Forums

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

Home Forums CSS tag and quotes can they coexist?

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #241929
    camera.ed
    Participant

    I am having trouble with the <cite> tag. Or well, rather with using the quotes
    property with the <cite> tag. Maybe they will not work together.

    The problem is the quotes don’t show up (but the font-style:normal does take effect.
    Here are some code. Can anyone tell me where I went wrong?

    HTML:

    Roger Miller’s song <cite class=”song”>Dang Me</cite> was released on his first ablum, <cite class=”album”>Roger and Out</cite>.

    CSS:
    i, em, cite, var {font-style:italic;}

    cite.article, cite.chapter, cite.song, cite.essay,
    cite.poem, cite.shortstory, cite.shortfilm {
    font-style:normal;
    quotes: “\”” “\””;
    }

    I’ve checked with Chrome and Firefox on PC and Mac, Explorer on a PC (Like that
    would ever work) and Safari on my phone. Nothing.

    #241931
    I.m.learning
    Participant

    Normally, using a cite tag will automatically italicize the content; however, your syntax is a bit off.

    Try this:
    It’s not letting me do this; wrap it in a p tag

    <cite>this is automatically italicized</cite> description here 
    
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.