• I want to override the css of my blockquote in only one post, in order to create a different blockquote style for that one post. Can someone tell me how I could do this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • <div style="whatever attributes you want to assign"></div>

    Thread Starter fifthhouse

    (@fifthhouse)

    Thanks for your help. If I could ask, in my style css for my blockquotes, it has a padding-left: 30px;

    I want to change it so the blockquote for this one page has no padding. I tried putting <div style=”padding-left: 0px;”>

    my text

    </div>

    but it didn’t change the style. The blockquote in the post still has a padding left of 30 px.

    Do you know what I’m doing wrong?

    Hi,

    in your case, you’d use <blockquote style="padding-left:0;"> instead of <div> since you’re trying to override the style of the blockquote tag for this specific instance.

    I hope this helps!

    -greg

    Thread Starter fifthhouse

    (@fifthhouse)

    Thanks Greg. That did the trick 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How can I override css of blockquote’ is closed to new replies.