Hello,
This is my first question on the Shopify community and I’ll start with saying I’m very new to code. I’m using the Dawn Theme. I have added an image to my customer log in page and figured out how to center it, but on desktop the image looks too big, when the desktop if half screen it looks just right, and on mobile it looks too small. I’d like for the image to stay the same width as the login boxes on all devices. Can someone help with figure out which code to change to make this happen? Thank you in advance!
https://wesellcandles.com/account/login
@OpenBoxOutlet
Hello,
.image_login img {
width: 650px;
}
@media only screen and (max-width: 660px) {
.image_login img {
width: 100% !important;
}
}
Add this CSS at the bottom of Online Store-> Theme->Edit code->Assets->base.scss.liquid
Like This
1 Like
Hi @OpenBoxOutlet ,
Go to Assets > base.css and paste this at the bottom of the file:
.image_login img {
width: 40% !important;
}
@media screen and (max-width: 750px) {
.image_login img {
width: 100% !important;
}
}
Hope it helps!
Thank you so much! This worked perfectly!