Question about webpage styling and the box model

So just a question about CSS in general. The white boarders next to the background image. Just outside the box. Is there anyway to make the background image (of the boat that is) stretch to the left and right edges of the screen? Would really apreciate the help :slight_smile:

Hi. The main elements have default browser styles like margins and paddings. That’s why most CSS frameworks or stylesheets use reset styles. One thing you can do to set all margins and paddings to 0 is this:

* {
margin: 0;
padding: 0;

The * targets all elements. Then you can overwrite everything with your custom styles.

1 Like

@mirja_t Thanks so much, Really appreciate the help :smile:

1 Like