blockquote styling and font-color

CraigSteinhoff
CraigSteinhoff

So I am under the impression this CSS should set the text in my blockquote to black

blockquote { font-family: 'Special Elite'; font-weight: bold;

  font-style: italic;

  color: #000000;

}

But it seems to have no effect? Just wondering if others have seen this issue?

Comments

  • Savannah
    Savannah
    Posts: 188

    I've found I have to use the !important tag/descriptor/thingie for most of my font color changes to show up. So you'd change

    color:#000000;

    to

    color:#000000 !important;

    If that doesn't work, let me know and I'll fiddle around with it and see if I can figure it out.

  • cgregory
    cgregory
    Posts: 780

    You don't need the important tag, you just need your css to be as specific as as the default css.

    Likely the blockquote is not taking effect because the default is blockquote, blockquote p

    and since your blockquote is likely really a blockquote with a paragraph tag after it the default font style of blockquote p is more specific to your blockquote than your the code you created.  So what you want is

    blockquote, blockquote p{

     font-family: 'Special Elite'; font-weight: bold;

      font-style: italic;

      color: #000000;

    }

    this has it applying to both blockquotes and blockquotes followed by a paragraph tag.

     

    They are among us!

    image

                       XCom: Defiance - Campaign of the Month November 2016

     

     

Sign In or Register to comment.

April 2024
Season of Strife

Read the feature post on the blog
Return to Obsidian Portal

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Discussions