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

Using tables WITHIN a css template - is this ok?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-16-2009, 09:51 AM
 
parekh81 parekh81 is offline
 

Senior Member
  
Join Date: Nov 2007
Posts: 191
 

Default Using tables WITHIN a css template - is this ok?

Due to time issues I am copying some tables from my old template into my new 4.2 css templates.

Something like this

<div>
<table></table>
<table></table>
</div>

Does anyone know from experience if this creates a problem of any type?


(Basically I really want to stick to my old template design - and I understand hiring someone to convert old template to css would cost a lot of money ...)
__________________
Gold 4.4.2 with 'some' customisation
Site review: http://forum.x-cart.com/showthread.php?t=63075
Reply With Quote
  #2  
Old 04-16-2009, 10:27 AM
 
balinor balinor is offline
 

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

Default Re: Using tables WITHIN a css template - is this ok?

You could, but it defeats the whole point of CSS.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote

The following user thanks balinor for this useful post:
parekh81 (04-16-2009)
  #3  
Old 04-17-2009, 06:27 AM
 
Darntoothysam.com Darntoothysam.com is offline
 

Member
  
Join Date: Mar 2009
Posts: 19
 

Default Re: Using tables WITHIN a css template - is this ok?

I'm using tables for layout right now with 4.2. We bought X-Cart to get away from our existing cart software, and our main page was designed in tables. We're just copying everything over at this point and coming back and rebuilding it down the line.

HOWEVER, I don't recommend it one bit, if we had the time and money we'd go to pure CSS, and I'd highly recommend trying to do CSS if you have the time/money.
__________________
X-Cart Version - 4.2.0
License products:
X-Cart Gold
Reply With Quote
  #4  
Old 04-17-2009, 07:55 AM
  Victor D's Avatar 
Victor D Victor D is offline
 

X-Adept
  
Join Date: Aug 2008
Posts: 643
 

Default Re: Using tables WITHIN a css template - is this ok?

Tables should be used for displaying datasheets, catalogs and so on.
Nesting div with position:relative inside tables may cause weird issues in IE6.
I had such a sad experience
__________________
Regards,
Victor Dubiniuk

X-Cart Skins Store
- twenty two different skins for 4.1.x and 4.2.x;
- 4.3.x compatible versions are available;
- refresh you store now!

Smart menu X-Cart add-on for 4.1.8 - 4.3.x
Featured Products Slide Show X-Cart add-on for 4.1.8 - 4.3.x
Reply With Quote
  #5  
Old 04-17-2009, 10:39 AM
 
parekh81 parekh81 is offline
 

Senior Member
  
Join Date: Nov 2007
Posts: 191
 

Default Re: Using tables WITHIN a css template - is this ok?

At the moment time/ money is exactly my problem. Time more importantly, considering the wait on developers is over 2-3 weeks by the time project is complete. I require this done in days.

for now I am just moving the tables over, but being careful and only applying when I need to. In some cases where a complete change is not required, I am actually just using css.

thanks for your help everyone...
__________________
Gold 4.4.2 with 'some' customisation
Site review: http://forum.x-cart.com/showthread.php?t=63075
Reply With Quote
  #6  
Old 04-22-2009, 06:47 AM
 
retrtrtrytrutru retrtrtrytrutru is offline
 

Senior Member
  
Join Date: Aug 2007
Posts: 101
 

Default Re: Using tables WITHIN a css template - is this ok?

Quote:
Originally Posted by parekh81
Does anyone know from experience if this creates a problem of any type?
This is not a problem. I've done it this way myself. The main layout of the page is pure CSS, no tables. But when you come to the product pages the info is displayed in tables as this is what tables are intended for: display catalogs.

See for example: http://www.vervangjelamp.nl/Hitachi-beamerlampen-projector-lampen/
__________________
www.qualitylamps.eu
X-Cart Gold 4.1.8, PHP 5.2.6, MySQL 5.0.51a, Apache 2.2.9

www.vervangjelamp.nl
X-Cart Gold 4.2.0, PHP 5.2.6, MySQL 5.0.37-standard, Apache/2

Sorry for the weird user name, I registered it by mistake
Reply With Quote
  #7  
Old 04-22-2009, 07:02 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: Using tables WITHIN a css template - is this ok?

Hi retrtrtrytrutru,

vervangjelamp.nl is VERY fast. Are you on a dedicated server?

nice work integrating 4.2
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #8  
Old 04-22-2009, 11:27 PM
 
retrtrtrytrutru retrtrtrytrutru is offline
 

Senior Member
  
Join Date: Aug 2007
Posts: 101
 

Default Re: Using tables WITHIN a css template - is this ok?

Hi carpeperdiem, thanks!

This website is not on a dedicated server, it's hosted here in The Netherlands with a good hosting company. I love the speed as well, it's much quicker than my other X-Cart site (which is why I'm moving it to the same company) I love the Clean URL feature from v4.2, we're getting good results in Google without any work at all.
__________________
www.qualitylamps.eu
X-Cart Gold 4.1.8, PHP 5.2.6, MySQL 5.0.51a, Apache 2.2.9

www.vervangjelamp.nl
X-Cart Gold 4.2.0, PHP 5.2.6, MySQL 5.0.37-standard, Apache/2

Sorry for the weird user name, I registered it by mistake
Reply With Quote
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 09:41 AM.

   

 
X-Cart forums © 2001-2020