If you’re using gutenberg choose a “group” block. You’ll be able to set the background to any color you would like. If you want the group to span the width of the page you’ll need to set the alignment to “full-width”. When you hover over the block itself you’ll get a toolbar pop up. Make sure you’re on the “group” block! Then look for the alignment icon and choose full width.
If you’re looking to put content into the group and want it contained, add whichever block you need into the Group.
Related Posts:
- Are there Gutenberg container blocks?
- show classes as dropdown in guttenberg`s additional css classes input box
- Style new block-editor alignfull class without scrollbars or overflow
- What CSS rules are introduced to core blocks through wp-block-styles?
- Gutenberg Block Editor Match Admin Styles & Frontend Styles
- If I dequeue Gutenberg Stylesheet will that have any effect on WordPress 5.0.1?
- is it possible to use post-type as part of a css selector in block editor stylesheet?
- Remove WordPress/Gutenberg button styles for ACF blocks
- Gutenberg Additional CSS Class without modifying theme?
- How to override Gutenberg admin CSS
- Different css rules for TinyMCE and Gutenberg while using add_editor_style()
- Can you edit WP gutenberg block css without a plugin?
- How to stop Gutenberg from outputting inline CSS for specific blocks?
- Enqueue styles in new site editor in WordPress 5.9
- create bootstrap columns inside editor group block
- Add Custom Alignment Option to WordPress Blocks/Gutenberg
- Simple way to add custom class and ids to individual Gutenberg blocks
- The Global Styles missing
- ACF Gut block broke wordpress default style?
- Scroll code block instead of wrapping text
- Default paragraph block styles just for pages NOT for posts?
- Custom CSS in Widget editor (Gutenberg) gets stripped out
- Custom Gutenberg color classes naming convention
- Adding a new block editor color option to a theme
- Stop custom Gutenberg styles taking over other admin bits?
- Why can’t blocks be hidden with jQuery?
- Gutenberg CSS Issue
- Trying to make an image a circle in Gutenberg
- What is the cleanest way to shrink Gutenberg Blocks to container width?
- Gutenberg Editor: display error with a combination of transform and background-attachment:fixed
- Default Gutenberg CSS on frontend
- Customizing the CSS for the post/page editor?
- Use of CSS classes in editor-blocks.css file
- Images at the same vertical position in multiple columns
- How do I make my block-editor styles match my front-end styles?
- Dequeue classic-themes.min.css
- Is there a way to edit the fonts of headings without a plugin (in the 2022 theme)?
- Narrow paragraph block aligned to left of “wrapper”
- adding additional css classes have no effect within block editor
- How do I change search input padding for blockbase child theme?
- Insert a group block inside a list item
- Full Site Editing Non-editble global styles?
- Block content rendered with inline CSS. How do I reuse it in a headless setup?
- How to add arbitrary custom CSS to a WordPress Block Theme using Site Editor?
- How to remove class=”wp-block-heading” from Heading tags?
- Gutenberg: where to find style settings
- Custom block style not working in the editor
- Customize margin between paragraphs using the Gutenberg Style editor
- CSS to make HTML page footer stay at bottom of the page with a minimum height, but not overlap the page
- What is the difference between the selectors “.class.class” and “.class .class”?
- Is background-color:none valid CSS?
- How to make padding:auto work in CSS?
- How to vertically center inside the parent element with CSS?
- Pure CSS to make font-size responsive based on dynamic amount of characters
- CSS – display: none; not working
- How to enqueue style before style.css
- wp_enqueue_scripts, wp_register_scripts, wp_print_scripts: i’m confused
- Which Details Are Required For Style.css File Header?
- How to implement different color schemes in your themes
- How to target first img in every wordpress post with CSS [closed]
- How to change Parent Themes in Child Theme CSS
- hSite has no css on mobile [closed]
- Relative path in wp_register_style not working
- WordPress on localhost working, when sharing IP to connect receive err_connection_refused on .js and .css files
- How to Add Custom CSS Buttons to WordPress as a Shortcode?
- How do you customize the admin bar for buddypress?
- Load in wp admin assets from child theme
- Two column Dropdown for WordPress Toolbar
- Code working just in specific time period
- Images loaded as background-image are shown but s aren’t
- Style WP_Debug?
- CSS styling of native (inbuilt) wordpress thumbnails [closed]
- Search Bar in Thesis WordPress Site
- Add core style in theme
- How to sync the style in the visual editor with the style of a child theme?
- Update wordpress causes white space on admin
- Responsive issue with secondary logo – not sticking in position [closed]
- How would one set or override a Fallback font for characters in second language?
- Custom css author role
- WordPress aggressively caching CSS
- broken internal JavaScript and CSS files
- avada woocommerce product details in grid
- How to display image on WordPress homepage
- My sites mobile view design is different when not logged in – how do I ensure it’s all the same?
- Trying to hide the contact form on a particular page
- Two CSS files loading extremely slow
- How to adjust text’s width and put it at center of post (Visual) editor?
- different theme output for desktop and mobile
- Font size decreases when child theme is created from parent theme?
- Enqueue CSS and Script only if needeed
- Bootstrap News: Image Modifciation
- How to remove the Welcome watermark on this page? [closed]
- resize chat bar on mobile [closed]
- Trying to remove white space between nav bar and content?
- Colouring the text on the video
- Padding added in sidebar, not coming from my style sheet [closed]
- image background is cut [closed]
- Changing from primary to a custom menu changes my CSS navigation layout
- Rollover button doesn’t appear in sidebar [closed]
- Enqueue MCE Editor CSS in admin page