Hey,
I am using the Narrative Theme and moved a button on the slideshow up. But on different mobile phones with different screen sizes the button overlaps the text. How do I make the button relative so it wont overlap the text shown in the pictures below.
This is the code I used to change the postion of the button
.slideshow__heading-cta {
opacity: 0;
margin-bottom: 97%;
position: relative;
transition: opacity 0.6s ease-in;
@include media-query($medium-up) {
margin-top: 125%;
margin-right: 76%;
position: relative;
}
Here are the pictures where you can see how the button overlaps the text:
URL: www.solarstarmaps.com
PW: g531
Thank you for your answers!
Hello There,
- In your Shopify Admin go to online store > themes > actions > edit code
- Find Asset > theme.scss.liquid and paste this at the bottom of the file:
@media only screen and (max-width: 767px){
a.slideshow__heading-cta.btn {
margin-bottom: auto!important;
}
}
Hey,
now its stuck in the middle how do I move it up a bit?
Do I just have to add to the new code another margin-bottom: 320px; ?
Add this one code.
@media only screen and (max-width: 767px){
a.slideshow__heading-cta.btn {
margin-bottom: 225px!important;
}
}
I applied it but it seems to still overlap the text on some devices.
Look like I fixed it with this code:
@media only screen and (max-width: 767px){
a.slideshow__heading-cta.btn {
margin-bottom: 340px!important;
}
}@media only screen and (max-width: 370px){
a.slideshow__heading-cta.btn {
margin-bottom: 275px!important;
}
}
I made it so when an older device has a smaller screen width it gets moved down.
Thanks for the help!