Archived topic
Border around text block
9 replies · Started by Steven Dylan Spitz on February 22, 2020
Is there a way to put a border around a text block in Gutenberg.
Hi there,
Can you guide me to the specific element where you'd like to do that?
Let me know :)
Thanks for your response. See this page: https://www.hammerpedia.com/test-page-1/
You can add a custom class like has-border then target it with CSS:
p.has-border {
border: 1px solid #000;
}
Adding CSS: https://docs.generatepress.com/article/adding-css/
awesome. thanks so much!
No problem :)
Hi,
Can you give a little more explanation how to target that CSS ?
And where should I add that class?
As I understood I should first add CSS code to the Additional CSS in the customize menu(already did that), so how do I use that CSS on particular paragraph ?
Thanks
This should help:
https://www.screencast.com/t/SfVkUAcSo6
I have entered the CSS code from above in the Additional CSS Classes box of the paragraph block but it does not add a border. Any idea what I'm doing wrong?
Can you open a new topic and link us to the page in question?
Thanks.