Results 1 to 7 of 7
  1. #1
    Join Date
    Jul 2007
    Posts
    53
    Plugin Contributions
    0

    Default Gap between Attributes

    Let me get the basic information first.

    Thought I was using the latest version but see there has been an update.

    Version Zen Cart v1.3.7.1/v1.3.7.1

    Template Gloss Black

    Add-On's Only add on is CSS Drop Down Menu

    Customized A lot of the normal things like side boxes, log in header footer have been turned off. This is so that I may insert it into an I-Frame to coincide with the theme of my site.

    Database Host: localhost (127.0.0.1)
    Server OS: Linux 2.6.18-128.2.1.el5
    Database: MySQL 5.0.45
    Server Date: 07/24/2009 23:55:37
    Database Date: 07/24/2009 23:55:37
    Server Up Time: 23:55:37 up 23:37, 0 users, load average: 0.00, 0.00, 0.00
    PHP Version: 5.1.6 (Zend: 2.1.0)
    HTTP Server: Apache/2.2.3

    OK, now for the question. I've searched the forums for the last week and tried several, what I thought, solutions to the issue. When I add attributes to a product page I get a gap between the first attribute and the second attribute. See the image below.

    Also a link to the page would be Click here

    I'm stuck after pouring over dozens of threads and can't seem to find a way to get rid of that, BLANKETY, BLANK, BLAND, GAP. Looking for possible solutions.



    Thanks
    Guy Fuller

  2. #2
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Gap between Attributes

    The gap is there because the add to cart box is floated right.

    The attributes are floated left but have a clear;both after them. This means that the second one is pushed down beneath all the active floats. ie beneath the add to cart box as well.

    In the source code you'll see: for instance:

    Code:
    <div class="wrapperAttribsOptions">
    <h4 class="optionName back"><label class="attribsSelect" for="attrib-1">Color</label></h4>
    <div class="back">
    <select name="id[1]" id="attrib-1">
      <option value="1">White</option>
      <option value="2">Black</option>
      <option value="3">Red</option>
      <option value="4">Blue</option>
    
      <option value="6">Green</option>
      <option value="7">Orange</option>
      <option value="5">Yellow</option>
      <option value="8">Silver</option>
      <option value="9">Lt. Blue</option>
    </select>
    
    </div>
    <br class="clearBoth" />
    It is the <br class="clearBoth" /> that is pushing them this way.

    This is found in the file.: tpl_modules_attributes.php. The .back that is appearing in the code is effectively a float:left.

    I am just going to go and see if I can find a post I remember about why it is a bad idea to have zen cart in a iframe like this!

  3. #3
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Gap between Attributes


  4. #4
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Gap between Attributes

    The nasty fix that doesn't involve doing the right thing with the various floats is to change in the stylesheet:

    Code:
    #cartAdd {
    	float: right;
    	text-align: center;
    	margin: 1em;
    	border: 1px solid #000000;
    	padding: 1em;
    	}
    to-
    Code:
    #cartAdd {
    position:absolute;
    right:10px;
    	text-align: center;
    	margin: 1em;
    	border: 1px solid #000000;
    	padding: 1em;
    	}
    Works but it is not 'nice'.

  5. #5
    Join Date
    Jul 2007
    Posts
    53
    Plugin Contributions
    0

    Default Re: Gap between Attributes

    Thanks Niccol, I hate to say it but you really busted my bubble, three months of working very hard to get this to look just the way I wanted. Oh well, I'll take your advice and download the latest version and work from there. Was it worththe effort? Yes! Humm! With all the features of the new version I can probably make it better as I'm getting a very good feel for Zen. Thanks for your reply. Now lets see what I can come up with. If this had an "add a friend" feature, you'd be on it in a heart beat as you gave me just the information I needed and provided extra effort in pointing me in a different better direction.

    Thanks you - Guy Fuller

  6. #6
    Join Date
    Jul 2007
    Posts
    53
    Plugin Contributions
    0

    Default Re: Gap between Attributes

    I think we can mark this closed. As for anyone trying what I was, Don't waste the effort. I looked at the security of the I-frame issue and was amazed at what I found. Along with the Paypal ISP issues, it's not worth your time.

    Guy

  7. #7
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Gap between Attributes

    Sorry. That must have been heart-breaking. The good thing is that it will take you a fraction of the time this time round now that you have found your way around zen cart. Good luck

    Sorry again

 

 

Similar Threads

  1. Big Gap Between Products
    By nolsowski in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 14 Jul 2011, 04:16 PM
  2. Huge gap between attributes
    By shewhorn in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 17 Feb 2010, 04:05 AM
  3. Gap between sideboxes
    By direwolf in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 29 Jul 2009, 06:57 PM
  4. Gap between header and text
    By NickJRE in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 9 May 2007, 01:59 PM
  5. Big gap between attributes being caused by add to cart button
    By dinki in forum Templates, Stylesheets, Page Layout
    Replies: 20
    Last Post: 22 Feb 2007, 09:58 PM

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