Hello. I want the green Container bigger that it fits perfectly under the picture. Thank you for your help ![]()
Topic summary
A user seeks help adjusting a green container element to fit perfectly under an image on their Shopify store’s desktop view, while maintaining proper mobile display.
Initial Problem:
- Green container doesn’t align properly beneath a banner image on desktop
- Mobile version displays correctly
- Store URL and password provided for troubleshooting
Solutions Offered:
Multiple community members provided CSS code snippets targeting:
- Container padding and max-width adjustments
- Responsive media queries for desktop (min-width: 769px/1024px) and mobile (max-width: 768px)
- Margin-bottom modifications to align container with banner bottom
- Border-radius styling for the banner image
Current Status:
The user successfully combined suggested CSS solutions to resolve the alignment issue. A new request has emerged: reducing the banner height so it doesn’t occupy the entire screen on desktop. The discussion remains open as the user awaits guidance on this secondary sizing concern.
Technical Details:
All solutions involve adding custom CSS to the theme’s base.css/style.css file through Shopify’s code editor, with specific targeting of .banner__box and .banner__media classes.
Hello, @BudwigUser
Please share “Store URL”
Thanks!
Hi @BudwigUser
This is for the desktop screen? PLease, share your store URL. Thanks!
https://026624-b9.myshopify.com/
Password: skabig
Yes for Desktop. On the phone its already perfect.
https://026624-b9.myshopify.com/
Password: skabig
Hello, @BudwigUser
- Go to Online Store
- Edit Code
- Find theme.css/base.css file
- Add the following code in the bottom
.banner--mobile-bottom .banner__box {
padding: 9rem 19.5rem !important;
}
@media screen and (min-width: 900px) {
.banner__box {
max-width: 100% !important;
}
}
Thanks!
Thank you for your help. It is in the desktopversion a little bit bigger and in the middle but on phone its akward.
Add this one code also
@media (max-width: 768px) {
.banner--mobile-bottom .banner__box {
padding: 1rem 1.5rem !important;
max-width: 100%;
}
}
Thanks!
Thnak you. On the Phone its now great but on destop the container should be under or aligned with the bottom of the banner.
@BudwigUser Add this one
@media (min-width: 769px){
.banner--mobile-bottom .banner__box{
margin-bottom: 60px !important;
}
}
If my reply is helpful, kindly click like and mark it as an accepted solution.
Thanks!
Thanks for the info, try this one.
- From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
- Find the theme that you want to edit and click on “Actions” and then “Edit code”.
- In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
@media only screen and (min-width: 749px){
.banner__content.banner__content--bottom-left {
padding: 0;
max-width: 100%;
width: 100%;
}
.banner__box.content-container {
width: 100%;
max-width: 100%;
}
div#Banner-template--24256663388484__image_banner .banner .banner__media:nth-child(1) {
border-radius: 20px !important;
}
}
- And Save.
- Result:
Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!
Hello @BudwigUser ,
Here are the steps to apply the necessary changes in your Shopify store:
- In your Shopify Admin, navigate to Online Store > Themes > Actions > Edit Code.
- Locate Asset > base.css and paste the following code at the bottom of the file:
.banner--mobile-bottom .banner__box {
padding: 10rem 20rem !important;
margin: 0 auto !important;
}
Let me know if you need further assistance!
Hi @BudwigUser
I hope you are well. You can follow our instructions below:
1/ Shopify admin > Online store > Customize: https://prnt.sc/XQ6IDB99kUCd
2/ From the left menu > Theme settings > Open Custom CSS: https://prnt.sc/iDxwa8zBQ4Z-
3/ Copy the code below and paste it there
Here is the code for Step 3:
@media screen and (min-width: 1024px){
div.banner.banner--content-align-center {
flex-direction: column !important;
}
.banner__media.media {
position: relative !important;
height: 600px;
}
}
Please let me know if it works. Thank you!
Best,
Daisy - Avada Support Team.
Is it possible that the container is under the image? If no what do I have to choose instead?





