r/csshelp • u/yesandone • Jun 24 '23
POSITIONING PROBLEM
Can someone help me understand how to position this?
I've been feeling stuck while trying to rebuild a site, I'm rebuilding a site to test my css skills but I've run into a roadblock, so , any help?
https://unique-scone-01b01a.netlify.app
(this isn't the site but it explains my problem exactly)
2
Upvotes
2
u/tridd3r Jun 24 '23
use display grid on .clearfix-container-products with grid-template-areas: 'main'; and maybe a place-items:center; and give grid-area:main to both child divs.
2
u/thirtyseven1337 Jun 24 '23
Do this to center the text overlay:
You probably need to swap the .latest-products-title and .latest-products-flexbox-container divs in order for it to show up in front of (not behind) the images. If you can't change the HTML, you can use z-index.
1
u/SeeHawk999 Jun 25 '23
Not sure but start by cutting those trousers to 1/3 it’s length.