Jump to content

The mobile terminal specifies the image size

Go to solution Solved by tuanphan,

Recommended Posts

Site URL: https://www.bilingsolarlight.com

Hello, I have a problem that I embed the picture link in the accordion code, and set the fixed size of the picture. The PC can fully display the picture, but the picture on the mobile end will be deformed. I want to know if there is a specific method to make the picture smaller on the mobile end, thank you🙌!

Another website

<div class="animate__animated animate__lightSpeedInRight animate__delay-3s">

<div id="ninja-elements" class="ix-block-ninja-custom-faq">

<div class="accordion" style="--ixFaqQuestionTextColor:#000000; --ixFaqQuestionOpenedColor:black; --ixFaqQuestionFontSize:19px; --ixFaqQuestionFontWeight:400; --ixFaqQuestionPadding:30px; --ixFaqAnswerTextColor:#646464; --ixFaqAnswerFontSize:16px; --ixFaqAnswerFontWeight:400; --ixFaqAnswerPadding:10px 33px 30px 33px; --ixFaqBackgroundColor:#fafafa; --ixFaqItemOpenedBackgroundColor:white; --ixFaqBorderTB:1px solid #dfe5ec; --ixFaqBorderLR:1px solid #dfe5ec;">
<div class="accordion__item accordion_view"> 
<h4 class="question" data-trig="1">Are you a factory? Can the product be sold in one piece?</h4>

<div class="answer" data-trig="1" style="display: none;"> <center><img src="https://images.squarespace-cdn.com/content/606d11b06696f47c48956f4d/1622515682702-A5R6TFLR7HDWMF9BNW05/%E6%8C%89%E6%97%B6%E5%8F%91%E5%8F%91%E5%8F%91.jpg?content-type=image%2Fjpeg" width="1200px" height="400px" /></center>Sure. If you like, you can visit our <a href="https://dragonbest.en.alibaba.com/"><b>store </b></a>to buy samples, we are absolutely direct sales manufacturers, with sophisticated equipment and professional technical personnel. </div> </div>

<div class="accordion__item accordion_view"> 

<h4 class="question" data-trig="2">Can I customize the product? Do you accept product customization?</h4>

<div class="answer" data-trig="2"> <center><img src="https://images.squarespace-cdn.com/content/606d11b06696f47c48956f4d/1622518368611-YP4C8K37J85XESCL2JNK/%E6%8C%89%E6%97%B6%E5%8F%91%E5%8F%91%E5%8F%912.jpg?content-type=image%2Fjpeg" width="1200px" height="400px" /></center><p>Absolutely!&nbsp;If you are interested in which product, you can feedback your situation to us. We will give a plan according to your purchase quantity and demand, and then customize your <b>logo</b> products!</p></div> </div>

<div class="accordion__item accordion_view">

<h4 class="question" data-trig="3">Do you offer any discounts?How to get a discount?</h4>

<div class="answer" data-trig="3"> <center><img src="https://images.squarespace-cdn.com/content/606d11b06696f47c48956f4d/1622518369998-GDZCRNHTOGTVT3UDZTUX/%E6%8C%89%E6%97%B6%E5%8F%91%E5%8F%91%E5%8F%914.jpg?content-type=image%2Fjpeg" width="1200px" height="400px" /></center><p>Yes! We offer discount for payment per year. There may be other temporary discounts, check for this inside the service. </p></div> </div>

<div class="accordion__item accordion_view"> 
<h4 class="question" data-trig="4">Can I request a refund?How to operate?</h4>

<div class="answer" data-trig="4"> <center><img src="https://images.squarespace-cdn.com/content/606d11b06696f47c48956f4d/1622518369684-VQGOQXHSG2WE0ZYPR7VR/%E6%8C%89%E6%97%B6%E5%8F%91%E5%8F%91%E5%8F%913.jpg?content-type=image%2Fjpeg" width="1200px" height="400px" /></center><p>Sure, If you are not satisfied with the product or some aspects, we will refund according to the requirements. The operation method depends on the order channel!</p> </div> </div></div></div></div>




Link to comment
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

  • Solution

Add to Design > Custom CSS

/* Mobile-Accordion-Image */
@media screen and (max-width:767px) {
.answer img {
    height: auto !important;


Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.