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

Why are they still using tables for layout?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 07-12-2010, 06:55 AM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: Why are they still using tables for layout?

I nest Div tags.... maybe not the best practice.

When I first started x-cart and before I knew much about webmaster mode and fire bug, rouge P tags used to drive me nuts because of the extra margin and padding. Note this was several years ago.

Any ways, I developed a severe dislike for them a long time ago, and haven't used them since.

I don't let go easily!
__________________
xcart 5.1.2
Reply With Quote
  #12  
Old 07-12-2010, 07:14 AM
  hoosierglass's Avatar 
hoosierglass hoosierglass is offline
 

X-Adept
  
Join Date: Aug 2006
Location: Zionsville, IN
Posts: 974
 

Default Re: Why are they still using tables for layout?

It is almost funny, everytime one of these threads starts, there is no responses from QT.

A clean bare bones install, without all the added garbage would be great. 4k of lines for the main css file is nuts. Customizing any of the skins is next to impossible if you very much from the initial layout.
__________________
X-Cart Gold 4.7.7
Custom Work from www.luminointernet.com
www.indy-pen-dance.com
Reply With Quote
  #13  
Old 07-12-2010, 07:15 AM
 
Sisom Sisom is offline
 

eXpert
  
Join Date: Sep 2006
Posts: 310
 

Default Re: Why are they still using tables for layout?

I always set out my markup like this:

<div class="whatever">
<p>Paragraph text with <em>bold or whatever</em> within it.</p>
<ul>
<li>List item 1</li>
<li>List item 2</li>
</ul>
</div><!-- END OF WHATEVER -->

Then I just use descendent selectors for everything within the div,
.whatever p
.whatever ul

etc.

I zero out all the margins and padding right at the start of the CSS file.
__________________
X-Cart Gold Version 4.3.2
Reply With Quote
  #14  
Old 07-12-2010, 07:17 AM
 
Sisom Sisom is offline
 

eXpert
  
Join Date: Sep 2006
Posts: 310
 

Default Re: Why are they still using tables for layout?

Quote:
Originally Posted by hoosierglass
It is almost funny, everytime one of these threads starts, there is no responses from QT.

A clean bare bones install, without all the added garbage would be great. 4k of lines for the main css file is nuts. Customizing any of the skins is next to impossible if you very much from the initial layout.

I agree with you so much! I am literally going to have to produce an entirely new CSS file, and start everything from scratch, just to get a workable 'slate' to start with.

Anyway, I have just had a look at
products_list.tpl
to compare it to the 2 column
products_t.tpl

products_list.tpl uses CSS, no tables, but products_t.tpl uses tables! So they fixed one part, and then made the worst table layout possible for two column layouts.

Once I've redone it all I'll post it up to the mods section (unless somebody else has already done something similar - fingers crossed.)
__________________
X-Cart Gold Version 4.3.2
Reply With Quote
  #15  
Old 07-12-2010, 07:18 AM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: Why are they still using tables for layout?

Yeah, I've been experimenting with different resets for alot of my work, just not x-cart yet.

If i thought 4.3 would be around a while I'd tackle the job, or 4.4 for that matter. Still don't understand all the totally different versions with v5 right around the corner.

Ash
__________________
xcart 5.1.2
Reply With Quote
  #16  
Old 07-12-2010, 07:20 AM
 
balinor balinor is offline
 

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

Default Re: Why are they still using tables for layout?

I wouldn't count on v5 being right around the corner - I'd guess next year if I had to put money on it.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #17  
Old 07-12-2010, 07:22 AM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: Why are they still using tables for layout?

ok, so 4.4 soon? would hate to invest hours into 4.3 and then boom... it obsolete.

That's is why it's very important to have accurate dates for completion of each branch
__________________
xcart 5.1.2
Reply With Quote
  #18  
Old 07-12-2010, 07:28 AM
 
balinor balinor is offline
 

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

Default Re: Why are they still using tables for layout?

Yea, 4.4 is in beta now, so should be out in a couple weeks - I'd focus on that one as it is a pretty big change from 4.3 from what it looks like.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #19  
Old 07-12-2010, 07:39 AM
 
Sisom Sisom is offline
 

eXpert
  
Join Date: Sep 2006
Posts: 310
 

Default Re: Why are they still using tables for layout?

Well, I found a simpler solution, I edited the CSS for
products_list.tpl

and changed line 2745 of main.css to:

Code:
.products-list .item { position: relative; margin: 0px 0px 45px 10px; background: #FFEEEE; padding: 10px; border: 2px solid red; float: left; width: 330px; height: 300px; }

That reduces the width of the (normally one column wide) product box, and floats it to the left, so you end up with two columns, and a LOT less work than trying to completely rewrite products_t.tpl.
You MUST give the element a height, otherwise the height may vary (for example, if the item has been reviewed, it will say "You have rated this product already", which adds height to the box) - and then you will suffer from the dreaded 'float drop', and you'll find your product boxes higglegy piggledy down the page...


All it means is that the customer can't choose to have one or three columns by editing General Settings, Appearance Options, 'Display products list in multiple columns (1-3) (leave empty to use standard format)', but that wouldn't work with my design anyway.
__________________
X-Cart Gold Version 4.3.2
Reply With Quote
  #20  
Old 07-12-2010, 07:44 AM
  hoosierglass's Avatar 
hoosierglass hoosierglass is offline
 

X-Adept
  
Join Date: Aug 2006
Location: Zionsville, IN
Posts: 974
 

Default Re: Why are they still using tables for layout?

4.4 in beta means 6-9 months for what we call a true stable version.
v.5 would be 6-9 months after that for release and since it is a new platform we should allow more time for what we call a stable version.

Ashley, depending on how many projects you have in the works, it might be worth the effort. Even better would be to team up with someone to split the work load.
__________________
X-Cart Gold 4.7.7
Custom Work from www.luminointernet.com
www.indy-pen-dance.com
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 12:51 AM.

   

 
X-Cart forums © 2001-2020