Welcome to my website.
I'm currently trying to make the black div break out of its parent div and stretch across the entire width of the browser.
My approach involves using negative margins, like this:
.aboutTop {
background-color: black;
width: 100%;
height: 600px;
position: relative;
margin-left: -100px;
margin-right: -100px;
}
Although I've experimented with margin-left: -100%;
, I am facing issues specifically with the margin-right
.
Instead of achieving the desired effect, it seems to only shift the box to the left by 100px.
Any insights on why this is happening?