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

Hints & Tips: No Questions, Just Answers Here!!!

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-18-2006, 09:54 AM
  girlsbits's Avatar 
girlsbits girlsbits is offline
 

Advanced Member
  
Join Date: May 2006
Posts: 77
 

Default Hints & Tips: No Questions, Just Answers Here!!!

Hi,

I've been with XC for little over a week now and I'm amazed by the number of times the same question has been asked over and over and over...

That aside, I had a (tiny!) little problem with my storefront layout last night and was about to make a post when I decided I'd try to work it out for myself first. It might sound simple to some, but I couldn't get my 4-per-row category thumbnail images to line up horizontally if the product names were all of differing lengths. Once I'd worked this simple solution out, I had an idea to start a "Hints & Tips" section with answers only, no questions, sort of like Boomers "Most Asked Questions". I'd like to make a start on this and hope others join in the conga!!!
__________________
X-Cart Gold | v 4.0.18 | Unix | php 4.3 | phpMyAdmin 2.8.0.3 |
Reply With Quote
  #2  
Old 05-18-2006, 10:04 AM
  girlsbits's Avatar 
girlsbits girlsbits is offline
 

Advanced Member
  
Join Date: May 2006
Posts: 77
 

Default Aligning Category Page Thumbnail Images

To horizontally align thumbnail images on your category pages when using the "Display products list in multiple columns" feature and when each product name is of a different length, simply add the "nowrap" tag to the table holding the images on the products_t.tpl:

START CODE

<TD width="{$width}%" align="center" valign="top" nowrap="nowrap" class="DialogBox">

END CODE
__________________
X-Cart Gold | v 4.0.18 | Unix | php 4.3 | phpMyAdmin 2.8.0.3 |
Reply With Quote
  #3  
Old 05-18-2006, 10:07 AM
 
balinor balinor is offline
 

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

Default

That is indeed what the thread by Shan is for in the FAQ forum, and the FAQ forum in general. If you have a suggestion for the thread, PM it to Shan and he'll add it. Let's not start a duplicate thread.

If the 'trick' is a modification, post it in the Custom Mods forum. Thanks
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #4  
Old 05-18-2006, 10:14 AM
  girlsbits's Avatar 
girlsbits girlsbits is offline
 

Advanced Member
  
Join Date: May 2006
Posts: 77
 

Default

Done!
__________________
X-Cart Gold | v 4.0.18 | Unix | php 4.3 | phpMyAdmin 2.8.0.3 |
Reply With Quote
  #5  
Old 05-18-2006, 01:15 PM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default

Thanks for sharing your experiences, it's always great when people take the time to give back to the community.

Just a note, I believe the correct html usage is:

Code:
<TD width="{$width}%" align="center" valign="top" nowrap class="DialogBox">

Reply With Quote
  #6  
Old 07-10-2006, 07:37 AM
  Alltribes's Avatar 
Alltribes Alltribes is offline
 

Senior Member
  
Join Date: Dec 2004
Posts: 192
 

Default

Nope, the correct usage is nowrap="nowrap". Either will work but it won't validate if you just use nowrap.
__________________
Alltribes.com
Native American Jewelry
Pottery, Baskets, Kachinas & More

X-cart Gold Version 4.0.17 Live
PHP 5.2.6
MySQL 4.1.25
(mt)
Reply With Quote
  #7  
Old 07-11-2006, 04:01 AM
  TelaFirma's Avatar 
TelaFirma TelaFirma is offline
 

X-Adept
  
Join Date: Nov 2002
Location: North Carolina USA
Posts: 930
 

Default

Quote:
Originally Posted by Alltribes
Nope, the correct usage is nowrap="nowrap". Either will work but it won't validate if you just use nowrap.

The correct usage is simply nowrap. It does not validate probably due to your doctype declaration. That attribute is now depreciated.

Quote:
Originally Posted by W3C
nowrap [CI]
Deprecated. When present, this boolean attribute tells visual user agents to disable automatic text wrapping for this cell. Style sheets should be used instead of this attribute to achieve wrapping effects. Note. if used carelessly, this attribute may result in excessively wide cells.

The reason that you are able to get it to validate using nowrap="nowrap" is because certain validators will allow non-standard atributes as long as they have a value and have quotes around the value. So for instance I could use:

smell="bad"
or
hair="nappy"

and they would still "validate" because the syntax is legal. It does not mean that they are proper HTML tag attributes.
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 04:12 AM.

   

 
X-Cart forums © 2001-2020