Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

How to put a square box behind text

$
0
0

Replies: 0

Hello everyone.
So I have a page with a Call to Action block on a column as this:
https://i.snipboard.io/6rxqBG.jpg
But I want to put a grey box behind it to be more visible, such as this:
https://i.snipboard.io/E3AZY8.jpg

However, I can’t see a way to create it.
If I put the column background as grey it will set the entire column background colour, and I want just the back of the CTA block to be gray.
I have also tried using a spacing with absolute position. But it breaks when the page width is smaller than a certain number.

How can I accomplish that?

Thank you so much!


Viewing all articles
Browse latest Browse all 59525

Trending Articles