Title: Styling blocks
Last modified: November 19, 2019

---

# Styling blocks

 *  Resolved [scienceofspock](https://wordpress.org/support/users/scienceofspock/)
 * (@scienceofspock)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/styling-blocks/)
 * I’m trying to build a page in Gutenberg (5.2.4, not 5.3 yet), and I’m running
   into a rather frustrating issue. In my page mockup, I have a header, footer and
   3 separate sections for the body. The problem is that my 3 sections all have 
   different background colors, but if I try to add classes to my blocks so I can
   target them to add background, that color does not extend to the edges. There
   appears to be a stack of wrappers around each block that cannot be classed or
   modified through the editor. How am I supposed to target these “wrappers” on 
   a per block basis to apply background colors only to specific sections?
 * Here are some images to hopefully illustrate:
    What I want: [https://i.imgur.com/ea7ghFR.png](https://i.imgur.com/ea7ghFR.png)
   What I get: [https://i.imgur.com/BJeiKbk.png](https://i.imgur.com/BJeiKbk.png)
 * I want to do this in a way that does not involve plugins. I shouldn’t need a 
   plugin to style some blocks. I’m curious though, when I assign a custom class
   to a block through the Gutenberg editor, why that class isn’t applied to the 
   outermost WRAPPER?
 * Thanks for any help.

Viewing 1 replies (of 1 total)

 *  Thread Starter [scienceofspock](https://wordpress.org/support/users/scienceofspock/)
 * (@scienceofspock)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/styling-blocks/#post-12147586)
 * This seems to be a theme issue and I have figured out a workaround.

Viewing 1 replies (of 1 total)

The topic ‘Styling blocks’ is closed to new replies.

## Tags

 * [background](https://wordpress.org/support/topic-tag/background/)
 * [color](https://wordpress.org/support/topic-tag/color/)
 * [wrapper](https://wordpress.org/support/topic-tag/wrapper/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [scienceofspock](https://wordpress.org/support/users/scienceofspock/)
 * Last activity: [6 years, 6 months ago](https://wordpress.org/support/topic/styling-blocks/#post-12147586)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
