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

Right border not displaying on subcategory image

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 07-13-2010, 04:10 PM
  gb2world's Avatar 
gb2world gb2world is offline
 

X-Wizard
  
Join Date: May 2006
Location: Austin, TX
Posts: 1,970
 

Default Re: Right border not displaying on subcategory image

The issue was not with the div that you add the border to, it was with the span that was around the div - it was not big enough to hold the image plus the border you added - it was only big enough to hold the image.
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold
(CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module)
Reply With Quote
  #12  
Old 07-17-2010, 11:03 AM
 
Sisom Sisom is offline
 

eXpert
  
Join Date: Sep 2006
Posts: 310
 

Default Re: Right border not displaying on subcategory image

But doesn't the product image use the same type of layout as the thumbnail image - i.e. a div to contain the div which contains the image?
__________________
X-Cart Gold Version 4.3.2
Reply With Quote
  #13  
Old 07-17-2010, 11:44 AM
  gb2world's Avatar 
gb2world gb2world is offline
 

X-Wizard
  
Join Date: May 2006
Location: Austin, TX
Posts: 1,970
 

Default Re: Right border not displaying on subcategory image

You would probably have to look at the exact differences to narrow in on the different behavior.

The link you originally published, if I remember correctly, was an image inside an href inside a span, with the span and the image being sized by the same smarty variable, leaving no room for the border you added. If the image you are comparing to is a div inside a div, that is a little different.

Probably - the href is not allowed to expand outside the containing div, so the border does not show. But the div inside the containing div is probably allowed to expand. You'd have to experiment a bit to see if that is the case. This is the kind of css that sometimes has differences across browsers too. Best just to leave room for the border with the containing div. (It might be worth reporting to QT as a minor bug. They probably won't see it as a bug, but at least will be aware of it. I don't think there is any reason to have the spacing so tight and it would be easy just to add a few pixels to avoid any confusion.)
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold
(CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module)
Reply With Quote

The following user thanks gb2world for this useful post:
Sisom (07-17-2010)
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not 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 01:45 PM.

   

 
X-Cart forums © 2001-2020