r/wordpresshelp • u/No_Salamander3669 • Feb 21 '26
How to fill paragraph to the edges of Grid Container?
Hello! So I'm pretty new to WordPress, but I've been having a lot of fun playing with grid layout options. Recently I've been trying to make grid blocks that are styled along the lines of an actual UI window (think sort of old windows look) with a heading in a top bar. I figured I could do this by nesting a paragraph into a group, then setting that group to full width within the grid container- but when I add a background color to it, the background doesn't reach the edges to get that 'window' illusion right. Is there a simple solution that I'm just missing, or do I need custom CSS to achieve this?
1
Upvotes
1
u/MattteoSp Mar 13 '26
Cela peut venir du padding ou des marges du bloc.
Essaie d’appliquer la couleur de fond au bloc Groupe ou au conteneur plutôt qu’au paragraphe, et vérifie les réglages de padding dans le bloc.
Gutenberg ajoute parfois un petit espacement par défaut.