Shopify themes, liquid, logos, and UX
Hi! Can somebody write a CSS code on how to align image on the right?
I would like to have this:
Solved! Go to the solution
This is an accepted solution.
Please add the following CSS code to your assets/theme.css bottom of the file.
@media only screen and (min-width: 1050px){
#shopify-section-template--15647742656564__b6ffef04-33f2-4bc6-a875-030a17042226 .feature-row {
margin: 0 1% !important;
}
#shopify-section-template--15647742656564__b6ffef04-33f2-4bc6-a875-030a17042226 .page-width {
max-width: 100%;
margin: 0;
padding: 0 0px !important;
}
}
Thanks!
give us the store URL then we will able to help you.
it's not published
Hi, it depends on your image element. If you show me the html code I can help you more.
try this one:
img{
float: right;
}
or
img{
display: -webkit-box;
margin-left: auto;
}
Good Luck.
<div class="index-section">
<div class="page-width feature-row-wrapper feature-row--50"><div class="feature-row"><div class="feature-row__item feature-row__text feature-row__text--right text-left aos-init aos-animate" data-aos=""><div class="rte appear-delay"><p>We aim to equip medical professionals in revolutionizing the way guards are created. Our medical providers witness the transformation it brings to patient outcomes, ensuring their physical capabilities are restored while maintaining the utmost quality and comfort.</p><p><br>Our clinicians feel empowered with XO ARMOR technology and are in charge of their time and effort.</p></div></div><div class="feature-row__item feature-row__images aos-init aos-animate" data-aos=""><div class="feature-row__first-image"><div class="image-wrap loaded" style="height: 0; padding-bottom: 90.64856711915536%;">
<image-element>
<img src="//cdn.shopify.com/s/files/1/0590/7693/5732/files/Untitled-1_698de7ba-3990-4eb1-a308-dbb41c015c7f.png?v=1687085602&width=1080" alt="" srcset="//cdn.shopify.com/s/files/1/0590/7693/5732/files/Untitled-1_698de7ba-3990-4eb1-a308-dbb41c015c7f.png?v=1687085602&width=180 180w, //cdn.shopify.com/s/files/1/0590/7693/5732/files/Untitled-1_698de7ba-3990-4eb1-a308-dbb41c015c7f.png?v=1687085602&width=360 360w, //cdn.shopify.com/s/files/1/0590/7693/5732/files/Untitled-1_698de7ba-3990-4eb1-a308-dbb41c015c7f.png?v=1687085602&width=540 540w, //cdn.shopify.com/s/files/1/0590/7693/5732/files/Untitled-1_698de7ba-3990-4eb1-a308-dbb41c015c7f.png?v=1687085602&width=750 750w, //cdn.shopify.com/s/files/1/0590/7693/5732/files/Untitled-1_698de7ba-3990-4eb1-a308-dbb41c015c7f.png?v=1687085602&width=900 900w, //cdn.shopify.com/s/files/1/0590/7693/5732/files/Untitled-1_698de7ba-3990-4eb1-a308-dbb41c015c7f.png?v=1687085602&width=1080 1080w" width="1080" height="979" loading="lazy" class="feature-row__image lazyloaded" sizes="(min-width: 769px) 50vw, 100vw">
</image-element>
</div></div></div>
</div>
</div>
</div>
Did you try the above CSS codes?
yes, didn't work
If you want I can send a collaboration request to your shop for fixing it. Send the domain. You can also share the preview link of your unpublished theme:)
cannot do this
Hello @IhorBulhakov, this could be done via custom coding. But for this I jeed to check your code.
Please either provide the URL of your website or share theme name and section you want to use. So, I can provide you proper guidelines.
Regards,
Osama Farooqi
Please share your store URL!
Thanks!
your section image all ready display on the right side please check the following screenshot.
what you want!
I want to have it like this, so that image is on the right till the border
This is an accepted solution.
Please add the following CSS code to your assets/theme.css bottom of the file.
@media only screen and (min-width: 1050px){
#shopify-section-template--15647742656564__b6ffef04-33f2-4bc6-a875-030a17042226 .feature-row {
margin: 0 1% !important;
}
#shopify-section-template--15647742656564__b6ffef04-33f2-4bc6-a875-030a17042226 .page-width {
max-width: 100%;
margin: 0;
padding: 0 0px !important;
}
}
Thanks!
If helpful then please Like Solution.
welcome again!
Thanks!
you are genius! love u
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024