Background-color without following max-width [closed]

2

I drew a maximum margin of 1500px, max-width: 1500px, for my site, but the behavior of background-color follows this margin, not wrong, quite the opposite, however I wanted to leave the color of my div in width 100% but the rest of the elements following that margin.

Would you do it or not? I can not think of any other idea ...

I do not think I could. I was wondering if I have to hit the margins in my hand using media queries?

    
asked by anonymous 20.03.2017 / 20:49

1 answer

3

You can add the background color directly to the body. Here's the example:

<style>
body {
    background-color: yellow;
}
</style>
    
20.03.2017 / 20:53