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

Removed float - only worked in FF, need better solution

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-09-2009, 09:10 AM
 
GreatLakesVacuum GreatLakesVacuum is offline
 

eXpert
  
Join Date: Jan 2009
Posts: 286
 

Question Removed float - only worked in FF, need better solution

Hello all, We were trying to make it so that our details always showed under the image box due to compatibility with smaller monitors and I found a simple fix, by commenting out the float but it doesn't work for IE.

What is the better way to accomplish this?

Here is the page to view in FF and IE to understand the difference:

http://www.greatlakesvacuum.com/xcart/product.php?productid=93&cat=1&page=1

And here is the code from main.css including my commented out float entry:

Code:
.product-details .image { text-align: center; vertical-align: top; padding: 0px; /* float: left; */ margin: 10px; }
__________________
X-Cart 4.5.4 Gold (Live Business Site)
X-Cart 5.1.9 Business (In Development Now)
Reply With Quote
  #2  
Old 02-09-2009, 09:23 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Removed float - only worked in FF, need better solution

Float works fine, but you need to be sure to specify the width and clear it <div style="clear: both;"></div> or else it will get botched up.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 02-09-2009, 10:04 AM
 
GreatLakesVacuum GreatLakesVacuum is offline
 

eXpert
  
Join Date: Jan 2009
Posts: 286
 

Default Re: Removed float - only worked in FF, need better solution

For some reason without me changing anything at all it seems to work fine now, yes... weird.

What specifically do I need to specify the width of? And if it looks ok now how could it later be botched up? I'm confused as to what would change...
__________________
X-Cart 4.5.4 Gold (Live Business Site)
X-Cart 5.1.9 Business (In Development Now)
Reply With Quote
  #4  
Old 02-09-2009, 10:29 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Removed float - only worked in FF, need better solution

Well if you float two things next to each other, often you need to specify the width so one doesn't stretch to 100% and kick the other one to the next line.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
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 02:50 PM.

   

 
X-Cart forums © 2001-2020