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

Best Seller Block and Screen Resolution

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-24-2015, 08:33 AM
  TrevorH's Avatar 
TrevorH TrevorH is offline
 

Advanced Member
  
Join Date: Jan 2015
Posts: 30
 

Default Best Seller Block and Screen Resolution

Hi,

When I turn on the bestseller block it shows fine on a larger screen.

If you look on a laptop the images are overlapped.

I think it has something to do with the table on the middle of my page.

Could anyone take a look and give me some advice on it please?

www.aicsupplyinc.com

Thanks,

Trevor
__________________
X-Cart DB Version: 4.6.6 GOLDPLUS (Linux)
Reply With Quote
  #2  
Old 03-24-2015, 03:19 PM
  cherie's Avatar 
cherie cherie is offline
 

X-Wizard
  
Join Date: May 2003
Location: USA
Posts: 1,534
 

Default Re: Best Seller Block and Screen Resolution

Correct, convert from a table to inline-block elements so they wrap no matter how wide the browser window is.
__________________
redlimeweb.com
custom mods and design integration
4.7 linux
Reply With Quote

The following user thanks cherie for this useful post:
TrevorH (03-25-2015)
  #3  
Old 03-24-2015, 04:26 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Best Seller Block and Screen Resolution

Quote:
Originally Posted by TrevorH
Could anyone take a look and give me some advice on it please?
Trevor,
Cherie is absolutely correct. Here is one of the tables converted to divs:
Code:
<div style="text-align: center;"> <div style="display: inline-block; vertical-align: top; min-height: 110px;"> <a href="http://bpw.hu/?language=en" target="_blank"><img alt="BPW" src="/images/companylogos/bpw-logo.png" style="height: 100px; width: 100px; margin-left: 30px; margin-right: 30px;"></a> </div> <div style="display: inline-block; vertical-align: top; min-height: 110px;"> <a href="http://www.omnigear.com/" target="_blank"><img alt="Omni Gear" src="/images/companylogos/omnigear_logo.png" style="width: 150px; height: 40px; margin-left: 30px; margin-right: 30px;"></a> </div> <div style="display: inline-block; vertical-align: top; min-height: 110px;"> <a href="http://flo-torq.com/" target="_blank"><img alt="Flo Torq" src="/images/companylogos/Flo-torq_logo.jpg" style="height: 29px; width: 150px; margin-left: 30px; margin-right: 30px;"></a> </div> <div style="display: inline-block; vertical-align: top; min-height: 110px;"> <a href="http://rpmdrivelines.com/" target="_blank"><img alt="RPM Transmissions" src="/images/companylogos/rpmlogo.png" style="width: 150px; height: 34px; margin-left: 30px; margin-right: 30px;"></a> </div> <div style="display: inline-block; vertical-align: top; min-height: 110px;"> <a href="http://kelloggcompressor.com/" target="_blank"><img alt="Kellogg Compressor" src="/images/companylogos/Kellogg-logo-wo-bg.png" style="width: 150px; height: 70px; margin-left: 30px; margin-right: 30px;"></a> </div> <div style="display: inline-block; vertical-align: top; min-height: 110px;"> <a href="http://butlerproducts.com/" target="_blank"><img alt="Butler Prducts" src="/images/companylogos/Butler_logo_small.jpg" style="width: 100px; height: 66px; margin-left: 30px; margin-right: 30px;"></a> </div> </div>

However those inline styles are messy, and should really be put in a style sheet.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote

The following user thanks totaltec for this useful post:
TrevorH (03-25-2015)
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 12:56 PM.

   

 
X-Cart forums © 2001-2020