How do I move the text in header image to the left?

Hi,

Hope you are well. How do I move the text in the image header to the left? I suppose it’s some customiseation of the code. I’ve tried this but didn’t work:

@media only screen and (min-width: 750px){ .text-center .mega-subtitle {max-width: 100% !important;} .hero__inner .text-center { text-align: left !important;} .hero__inner .hero__btn { left: unset !important; right: unset !important;} }

Preview of website: https://www.smultronetshop.se/pages/killklader-home/killklader-home-nod3kvm5

This is Noah from PageFly - Shopify Page Builder App

Hi @Smultronetshop please send me url again, This url is not found.

Best regards,

Noah | PageFly

Hi again,

Thank you for your patience, and help. Here is the url: https://4c9jjjythm9ufn09-67877634316.shopifypreview.com

Hi again,

Click on “kille” in the header, then you will be available to enter that page. All the best.

Hi @Smultronetshop You can fix it by add code to file base.css:

@media screen and (min-width: 750px){
.banner__box {
    min-width: 0px !important;
    padding-left: 20px !important;
   }
//change color to white if you want
.banner__box h2 {
    color: white !important;
   }
}

@media screen and (min-width: 750px){
.banner__content.banner__content--middle-center {
    align-items: center !important;
    justify-content: flex-start !important;
}
}
.banner__content{
    max-width: 100% !important;
}

Thank you!!! :+1:

1 Like

Thank you for response.

Any chance you now how to push the text and button under the title to the left as well? “Upptäck våra favoriter” and “Köp nu”?

Yes. Sure, Please wait.

Hi @Smultronetshop Please add code here:

.banner__box div{ 
  width: 100% !important;
  text-align: left !important;
}
1 Like

thank you. Just one last question. In mobile version, the text is pushed below the image. Any chance you have a solution for it? Thanks!

Thank you!!!

(it can be placed in the middle in mobile version, doesn’t have to be on the left side)

@Smultronetshop yes, Please add code here:

@media only screen and (max-width: 767px) {
  .banner__box{
     position: absolute !important;
     bottom: 0 !important;
     //if you want set content left please add code below
     text-align: start !important;
  }
}
1 Like

Thank you !!!

You are the best!

Now it apperad a follow-up question about it above. How do I make the text “Upptäck våra favoriter” and the “Köp nu” button in the middle? Sorry for all these questions. :slightly_smiling_face:

Deskop Text Button Center

Add This Css in Base.css File

.banner__buttons {
    justify-content: center;
}
.banner__text.body {
    justify-content: center;
    display: flex;
}

In mobile version

Add This css In your Base.css File

@media screen and (max-width:767px){
    .banner__content {
        position: absolute !important;
        bottom: 0;
    }   
}

@Smultronetshop Hi, please change again code here to :

@media only screen and (max-width: 767px) {
  .banner__box{
     position: absolute !important;
     bottom: 0 !important;
     text-align: center !important;
  }
}

I change line " text-align: left !important;" to " text-align: start !important;