---
title: "Discussion on \"Breaking a background out of its container\" | Hashnode"
description: "Discussion on \"Breaking a background out of its container\". I recently had an element inside a container. The container had a max-width set. But I needed the background colour of my element to fill the width of the screen. I couldn't change the HTML or the max-width of the container. What to do?\nBox shadow\nTh..."
url: "https://hashnode.com/posts/breaking-a-background-out-of-its-container/631dbe21f73f4734bc056fdd"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Breaking a background out of its container](https://blog.nicm42.me.uk/breaking-a-background-out-of-its-container?utm_source=hashnode&utm_medium=feed)

I recently had an element inside a container. The container had a max-width set. But I needed the background colour of my element to fill the width of the screen. I couldn't change the HTML or the max-width of the container. What to do? Box shadow Th...

Sep 11, 2022 · 1 min read · blog.nicm42.me.uk  
Read the article

-   [#css](https://hashnode.com/tag/css)

## Written by

[Nic](https://hashnode.com/@nicm42)

@nicm42 · England

  
[View profile](https://hashnode.com/@nicm42)

This week I learnt...

Front End Developer. I like problem solving and making things pretty. I also like red.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
