Hello, I need to get a styling like the SpaceX webiste.
link: https://www.spacex.com/
If you check it, you would find that the images are going all the way from left to right but the content is still at the center. How to achieve that?
What I have tried:
I gave body
a background-image
while the margin: 0 auto
so it worked as the image was going from left to right and the content was centered. But when I went for other images I found that I need some kind of separate container
and divs
to add separate images. Now problem all the images are coming with exact same width as the content, but I need to change this to full width images while the content still be centered.
Code link: https://codepen.io/the_c0der/pen/rNpMGMq
Please note that my code is mess and the images won’t load because I used them locally and there is no way to link to them directly, But you can get idea what I want to say. Sorry for messy code I am total new a self learner.