Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Banner Image size not changing

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 04-10-2018, 08:15 AM
 
gotpump gotpump is offline
 

eXpert
  
Join Date: Aug 2008
Posts: 272
 

Default Banner Image size not changing

Hi everyone,

I am having some trouble getting the banners to fit on all devices, mobile and computer to computer. Does anyone know how to make these banners fit through all devices?

I have used .carousel-inner { max-width: 90%; } in CSS but that only shrinks the actual size of the banner box not the image inside of it.

Thanks so much
__________________
X-Cart DB Version: 5
Reply With Quote
  #2  
Old 04-26-2018, 11:23 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Banner Image size not changing

The built-in rotating banner scale images to fit the height and crops the left and the right sides if the image is too wide.
When you set the max-width for .carousel-inner, it doesn't change the height of the image, so it just crops more.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 07:02 PM.

   

 
X-Cart forums © 2001-2020