Try this for left margin of whole blocks.
.wp-block-quote{
margin-left:20px;
}
If you want indent only the first line, try this.
.wp-block-quote{
text-indent:1em;
}
Thank you mate I’ll give that a crack
Thanks. Why would that margin info not just go into the existing blockquote code like this:
blockquote {
font-size: 20px;
font-family: Georgia;
color: #000000;
text-align: left;
margin-left: 20px;
}
would that work?
If there are multiple same specificity rules, then the last rule occurring in the stylesheet is applied.
In order, 1 is the lowest specificity and 5 is the highest.
- Element
- Class selectors
- ID Selectors
- Inline styles
- !important
In this theme, the specificity of “blockquote” element is overridden by “wp-block-quote” class selector specified elsewhere.
Therefore, if you want to specify style in the “blockquote” element, add “!important” as shown below. This may work.
margin-left: 20px !important;
So am I correct in thinking
.wp-block-quote is the default wordpress format
and
‘blockquote’ is the format specific to the theme?
I am finding this confusing, so thank you for your help with this @aoixtreme
(I deleted !important in some of the css as I assumed they were merely comments, so silly me)
Re comments I just looked it up and now I know
/* This is a single-line comment */
and
/* This is
a multi-line
comment */
and it can also be used as
p {
color: red; /* Set text color to red */
}
so I learned several useful things today 🙂