Adjust Button mobile

Hi. I try a code to remove the button background on the image banner section in my Dawn Theme, and it worked just fine on desktop but looks awful on mobile, can someone help me to make it look the same as the desktop one.

Thanks for any help in advance!

Store: www.babidiboo.com

Hi @babidibooparty

Try this one.

  1. From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
  2. Find the theme that you want to edit and click on “Actions” and then “Edit code”.
  3. 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 (max-width: 749px){
.banner__box.content-container {
    position: absolute;
    bottom: 0;
    padding-bottom: 5px;
}
}

Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!

Hi! So it worked but if I enter “bottom: 0” it overlaps the title, so i move it to 1 so it doesn’t, but its not fully inside the banner, can you help me with that? thank you in advanced!

HEllo @babidibooparty
Go to online store ----> themes ----> actions ----> edit code ---->base.css
add this code at the end of the file and save.

@media screen and (max-width: 749px) {
.banner__buttons a {
transform: scale(0.8);
}
}

result

If this was helpful, hit the like button and accept the solution.
Thanks

Hi! thank you so much, but it didn’t work! :disappointed_face: