Shopify themes, liquid, logos, and UX
How do I remove or lessen the border (white space) on the header using the Dawn 2.0 theme? There's a gap between the header and banner image.
My store URL is https://souvenir-the-store.myshopify.com/ while the password is cookiebutter. Thank you.
Solved! Go to the solution
This is an accepted solution.
Try adding this code to the bottom of base.css
#MainContent {
margin-top:0px;
}
This is an accepted solution.
Try adding this code to the bottom of base.css
#MainContent {
margin-top:0px;
}
Hi @lextui
Please follow these steps to remove the white space under your header:
1. Go to your Shopify Admin > Themes > Edit code > Assets > Open base.css
2. Find ID #MainContent and change margin-top to 0px or a more suitable px you want.
#MainContent {
margin-top: 0px;
}
If you feel like my answer is helpful, please mark it as a SOLUTION. Let me know if you have any questions!
Hii @lextui
Welcome to the Shopify community!
Thanks for your good question.
Go to Online Store->Theme->Edit code
2. Asset->/theme.css ->paste below code at the bottom of the file.
#MainContent {
margin-top:0px !important;
}
If this post is helpful for you Kindly Like and Accept this as a solution.
Please Add this CSS to your base.css file
Assets > base.css
main#MainContent {
margin-top: 0 !important;
}
Thank You!
I am having the same issue please help! The code above didn't work for me.
I am trying to remove the white space above the banner image, it is only there in the mobile view. https://n19ziw94my3fo62m-74563387678.shopifypreview.com
User | RANK |
---|---|
186 | |
170 | |
80 | |
55 | |
45 |
Transform this holiday season into a shopping spree. Plus, learn how to effortlessly open ...
By Jasonh Dec 8, 2023Make the shift from discounts to donations, and witness your business not only thrive fina...
By Holly Dec 4, 2023On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023