How do I center buttons in an image banner for desktop and mobile? - Dawn Theme

How do I center buttons in an image banner for desktop and mobile? - Dawn Theme

david258
Tourist
4 0 1

How do I center buttons in an image banner for desktop and mobile, so that they are in the center of their perspective image. Do not like the they way ther are sitting in their inner corner, center of page.

 

Website: cheercollection.com

 

CheerCollection Button Issue.PNG

Replies 5 (5)

Made4uo-Ribe
Shopify Partner
9593 2284 2834

Hi @david258 

On which page can I find this banner?

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.

david258
Tourist
4 0 1

It's on the main page. It was in testing mode, but I just lanunched so you can see.

Made4uo-Ribe
Shopify Partner
9593 2284 2834

Thanks for the info, 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:

 

.banner__box.content-container {
    max-width: 100%;
    width: 100%;
}

.banner__content.banner__content--middle-center {
     max-width: 100%;
}

.banner__buttons.banner__buttons--multiple {
    display: flex;
    justify-content: space-around;
    max-width: 100%;
    width: 100%;
}
.banner--content-align-center .banner__buttons--multiple>* {
    flex-grow: unset !important;
}

 

  • And Save.
  • Result:
  • Made4uoRibe_0-1733777094883.png

     

 

 

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

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.
david258
Tourist
4 0 1

Much better but still not centered over image, please review.

Made4uo-Ribe
Shopify Partner
9593 2284 2834

Yes, I see it, PLease, replace on this one. 

 

.banner__box.content-container {
    max-width: 100% !important;
    width: 100%;
}
.banner__buttons.banner__buttons--multiple {
    display: flex;
    justify-content: space-around;
    max-width: 100%;
    width: 100%;
}
.banner__content.banner__content--middle-center {
     max-width: 100%;
}

.banner--content-align-center .banner__buttons--multiple>* {
    flex-grow: unset !important;
}

 

And Save. 

 

 

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

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.