Archived topic
How to add background color on the text of page header
6 replies · Started by Paul on June 7, 2020
hi, how are you
i want to add the header each page with generatepress element.
i want to add the background color on the text of page header, like this screenshot https://prnt.sc/sv81a0 or check sample website https://rolledmetalproducts.com/stainless-steel-type-201/
can you give me some advice?
thanks in advance
Hi there,
so this CSS for example:
.page-hero h1 {
display: inline-block;
padding: 10px;
background-color: rgba(255,255,255,0.5);
}
This will add a transparent white background to the H1 title added to a header element.
hi, sorry, david
i think i should add them to Element, right?
Use Simple CSS
Now it is OK。
Thanks, David
You're welcome