Results 1 to 10 of 12

Hybrid View

  1. #1
    Join Date
    Jul 2006
    Location
    Rotherham, UK
    Posts
    143
    Plugin Contributions
    0

    Default Attribute Spacing/Alignment

    hiya

    I have managed to set up my first attribute thingie, its a read only and tells the customer the power/batteries needed for the items they are looking at.

    The thing is, on the items pages it looks wrong. the attribute name is Power, is there any way to get the result over to the left a bit, so there is only a couple of spaces between them (see image below cos i think that description kinda stinks a bit dosnt it lol)

    http://i69.photobucket.com/albums/i45/RPSPP/Image1.gif

    Erica xx

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Attribute Spacing/Alignment

    Erica

    Normally the question is how can I put some space between the attribute titles and their values. So your question is going to be very difficult if not impossible to answer without seeing the site itself to work out where the spacing is coming from.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #3
    Join Date
    Jul 2006
    Location
    Rotherham, UK
    Posts
    143
    Plugin Contributions
    0

    Default Re: Attribute Spacing/Alignment

    sorry .. here you go (please ignore the URL name, it is actually an online adult store i am working on)
    www.costumejewelleryaccessories.co.uk

    Erica xx

  4. #4
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Attribute Spacing/Alignment

    Oh dear. Unfortunately you are using a tables-based layout where the distance is built into the table definition and there are no CSS hooks to change it.

    Specifically, these attributes are displayed in a table that is centered in the middle panel and 90% wide. It has two cells with left-aligned text. The right hand one is 75% of the 90% wide and so by implicatioin the left one if 25% wide or 22.5% of the center column width. This will get bigger or smaller as the window expands or contracts, but it is all hard-coded and so can't be changed without coding changes.

    What version of Zen Cart are you using and what template is this based on?
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  5. #5
    Join Date
    Jul 2006
    Location
    Rotherham, UK
    Posts
    143
    Plugin Contributions
    0

    Default Re: Attribute Spacing/Alignment

    Quote Originally Posted by kuroi
    Oh dear. Unfortunately you are using a tables-based layout where the distance is built into the table definition and there are no CSS hooks to change it.

    Specifically, these attributes are displayed in a table that is centered in the middle panel and 90% wide. It has two cells with left-aligned text. The right hand one is 75% of the 90% wide and so by implicatioin the left one if 25% wide or 22.5% of the center column width. This will get bigger or smaller as the window expands or contracts, but it is all hard-coded and so can't be changed without coding changes.

    What version of Zen Cart are you using and what template is this based on?
    Hiya again

    The template is purpleshades .. and the zen cart is 1.2.7 which was installed by the hosting company .. Kobra told me that 1.3 is much better, but when i asked the hosting company if i could have that one on instead, they said they dont offer support for it .. and i dont dare change it myself lol

    Erica xx

  6. #6
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Attribute Spacing/Alignment

    OK. Firstly a fix for your immediate problem. If you don't already have one, create a directory called includes/templates/purpleshades/templates.

    Then copy includes/templates/template_default/tpl_product_info_display.php into your new directory and open the new copy for editing.

    Lines 158-159 should read
    <td class="main" align="left" valign="top"><?php echo $options_name[$i] . ':'; ?></td>
    <td class="main" align="left" valign="top" width="75%"><?php echo $options_menu[$i]; ?></td>
    Edit them to read
    <td class="main" align="left" valign="top" width="60px"><?php echo $options_name[$i] . ':'; ?></td>
    <td class="main" align="left" valign="top"><?php echo $options_menu[$i]; ?></td>
    Upload the new file to your server.

    That will deal with your immediate problem, but you have a bigger one. Kobra is right. 1.3 is much better. It's architecture is superior, it's much more standards compliant, it has some snazzy new features, but most importantly for a online shop, it has some important security fixes.

    It's a cheek for your webhost to say that they only support version 1.2.7. They are leaving you with an outdated, no-longer supported version of Zen Cart containing known security flaws. How can they can they call that support. I'd recommend looking for a new host. Some like Camelot-Hosting will even move your site for you, and the Purple Shades template is available for version 1.3 so upgrading shouldn't be too difficult.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  7. #7
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Attribute Spacing/Alignment

    Who is your host?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. Attribute Label vs. Attribute Drop-Box: Horizontal Alignment
    By peeplead in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 27 Jul 2011, 07:14 PM
  2. attribute spacing off
    By jmuniz in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 17 Dec 2010, 05:20 PM
  3. Attribute spacing
    By r1formetoo in forum Templates, Stylesheets, Page Layout
    Replies: 15
    Last Post: 5 Feb 2009, 04:01 AM
  4. Spacing and alignment of products in columns
    By dman76 in forum Setting Up Categories, Products, Attributes
    Replies: 10
    Last Post: 20 Nov 2007, 10:56 PM
  5. Attribute image spacing
    By Shari in forum General Questions
    Replies: 4
    Last Post: 28 Jun 2007, 05:03 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg