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

Removing White Borders Around images (5.3.13)

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 10-10-2016, 11:13 AM
 
info@shadowgraphicsinc.co info@shadowgraphicsinc.co is offline
 

Senior Member
  
Join Date: Jan 2011
Posts: 123
 

Default Removing White Borders Around images (5.3.13)

I am looking to find what part of the CSS I could find where to change the background white images for the category images and also page detail background image colors?

I've looked through some of the CSS pages and tried to change them in the custom CSS settings but it doesn't seem to update the larger images (I was able to change the smaller detail images however)

Sample images are attached as well.

Any info would be appreciated thanks!!
Attached Thumbnails
Click image for larger version

Name:	01.jpg
Views:	130
Size:	66.0 KB
ID:	4710  Click image for larger version

Name:	02.jpg
Views:	132
Size:	70.3 KB
ID:	4711  
Reply With Quote
  #2  
Old 10-16-2016, 04:14 PM
 
lseals lseals is offline
 

Advanced Member
  
Join Date: Aug 2016
Posts: 63
 

Default Re: Removing White Borders Around images (5.3.13)

Total newb, but it seems that you will have to adjust your picture size in Photoshop (or other image program) or use the custom css tool - Navigate to Look and Feel then click images and you should see the default image settings to modify the picture size. God bless you!
__________________
On The Cheap - We Believe God!
http://www.onthecheap.store (In Development)
X-Cart 5.3.2.2
PHP 7.0.14
nginx/1.11.8
Reply With Quote
  #3  
Old 10-16-2016, 05:38 PM
 
info@shadowgraphicsinc.co info@shadowgraphicsinc.co is offline
 

Senior Member
  
Join Date: Jan 2011
Posts: 123
 

Default Re: Removing White Borders Around images (5.3.13)

Quote:
Originally Posted by lseals
Total newb, but it seems that you will have to adjust your picture size in Photoshop (or other image program) or use the custom css tool - Navigate to Look and Feel then click images and you should see the default image settings to modify the picture size. God bless you!

The image size in the backend can be changed but does not always tightly fit the image thumbnails - some white will still show through. I did find the CSS for the product end of things so it is black. But I could not find the CSS for the grid view for the thumbnails.

Any direct help would definitely be appreciated.
Reply With Quote
  #4  
Old 10-16-2016, 10:25 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

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

Default Re: Removing White Borders Around images (5.3.13)

Have you managed to fix this?
As far as I see there are no white borders on your website at the moment.
__________________
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
  #5  
Old 10-17-2016, 06:04 AM
 
info@shadowgraphicsinc.co info@shadowgraphicsinc.co is offline
 

Senior Member
  
Join Date: Jan 2011
Posts: 123
 

Default Re: Removing White Borders Around images (5.3.13)

We were able to use custom CSS to take care of it on the product detail page. But I couldn't find the right CSS to take care of it on the grid listing.

http://www.incantation.com/shop/guys-clothing-items

would be the example.

Thanks!
Reply With Quote
  #6  
Old 10-17-2016, 08:31 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

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

Default Re: Removing White Borders Around images (5.3.13)

Here is the rule that adds the white padding above and below images:
Code:
#content .products div.product-photo, .products-grid div.product-photo { background: #fff; padding: 10px 0; margin-bottom: 20px; border-radius: 0; }

So, in your custom CSS you should add an overriding rule for "#content .products div.product-photo, .products-grid div.product-photo" (perhaps, you should also add "body" in front of it) that will either set the background color to black, or reset the padding and the background size to zero, or both.
__________________
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

The following user thanks qualiteam for this useful post:
  #7  
Old 10-19-2016, 06:27 AM
 
info@shadowgraphicsinc.co info@shadowgraphicsinc.co is offline
 

Senior Member
  
Join Date: Jan 2011
Posts: 123
 

Default Re: Removing White Borders Around images (5.3.13)

Quote:
Originally Posted by qualiteam
Here is the rule that adds the white padding above and below images:
Code:
#content .products div.product-photo, .products-grid div.product-photo { background: #fff; padding: 10px 0; margin-bottom: 20px; border-radius: 0; }

that worked perfectly thank you!
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 11:53 PM.

   

 
X-Cart forums © 2001-2020