Page 1 of 2 12 LastLast
Results 1 to 10 of 21

Hybrid View

  1. #1
    Join Date
    Oct 2006
    Posts
    225
    Plugin Contributions
    0

    Default Big gap between attributes being caused by add to cart button

    Hey guys. I'm looking for a little help on modifying my product_info file so that all my attribute options are listed together. Right now, I have the color option being displayed, then under it is the size option. The size option has a large 'white space' between it and the color option. This space is equal to the size of the add to cart button which is located on the right side of the screen.

    Can someone tell me what file needs to be edited to get the attributes to be grouped together?

    Here's an example to make things a bit clearer:

    http://www.decaldepot.net/zencart/in...roducts_id=214

    Thanks...
    Visit my Decal website: DecalDepot.net

  2. #2
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,886
    Plugin Contributions
    0

    Default Re: Big gap between attributes being caused by add to cart button

    #productAttributes {
    float: left;
    width: 70%;
    }

    thank kobra for it.
    Mike
    AEIIA - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

  3. #3
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Big gap between attributes being caused by add to cart button

    Your style sheet is far different than the default....but try finding or adding this to it and see how it looks
    Code:
    #productAttributes {
             float: left;
             width: 70%;
             }
    edit:
    Hello barco...you were just a bit faster
    Zen-Venom Get Bitten

  4. #4
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,886
    Plugin Contributions
    0

    Default Re: Big gap between attributes being caused by add to cart button

    I'm a cut & paste god
    Mike
    AEIIA - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

  5. #5
    Join Date
    Oct 2006
    Posts
    225
    Plugin Contributions
    0

    Default Re: Big gap between attributes being caused by add to cart button

    Thanks for the speedy reply guys. I added the css code to my stylesheet.css in my template directory. I'm not so sure I've made any improvements. The space between the attributes seems acceptable in Firefox and IE under XP, but on Firefox on my Solaris workstation I'm still seeing the large gap between attributes. Maybe it's just one of those css nuiances.
    Visit my Decal website: DecalDepot.net

  6. #6
    Join Date
    Aug 2006
    Location
    Canada
    Posts
    1,029
    Plugin Contributions
    5

    Default Re: Big gap between attributes being caused by add to cart button

    You could remove the clearBoth tag inbetween the two attributes, although I'm not certain of the exact PHP file to edit for that. That'll let the air out between the two, I'm guessing that's what you want.

    Also, your template stylesheets are in need of validation for simple syntax errors. Not your fault though, those errors came with the template.

  7. #7
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Big gap between attributes being caused by add to cart button

    Solaris workstation
    Is that not a 'nix OS? I looked at it in FF on a linux box and it appears to be better than before.....
    Zen-Venom Get Bitten

  8. #8
    Join Date
    Oct 2006
    Posts
    225
    Plugin Contributions
    0

    Default Re: Big gap between attributes being caused by add to cart button

    Quote Originally Posted by kobra View Post
    Your style sheet is far different than the default....but try finding or adding this to it and see how it looks
    Code:
    #productAttributes {
             float: left;
             width: 70%;
             }
    edit:
    Hello barco...you were just a bit faster

    Hrmff.. I thought this was working out, but it seems like things are screwy if any other boxes show up after the attributes. Take a look at this:

    http://www.decaldepot.net/zencart/in...products_id=79

    Any idea on how I can fix this? Do I need to somehow clear the css or something? I wish I knew more about css to fix this myself and appreciate the help you guys have been giving me!
    Visit my Decal website: DecalDepot.net

  9. #9
    Join Date
    Oct 2006
    Posts
    225
    Plugin Contributions
    0

    Default Re: Big gap between attributes being caused by add to cart button

    I've been toying with settings for this and am not having much success. Can someone tell me how I might be able to move the 'add to cart' button below all of the options? While it does look good on the right part of the screen, if it's easier and doesn't break the rest of the page, I see no reason not to move it to the left-bottom.

    I know you guys don't get paid for the assistance that you give to a newbie like me, but just know that all help provided is GREATLY appreciated!
    Visit my Decal website: DecalDepot.net

  10. #10
    Join Date
    Aug 2006
    Location
    Canada
    Posts
    1,029
    Plugin Contributions
    5

    Default Re: Big gap between attributes being caused by add to cart button

    How about just positioning to the left side of the attributes instead?

    If interested, make a backup of your stylesheet.css and find/modify;
    Code:
    /*Shopping Cart Display*/
    #cartAdd { float: left; text-align: center; padding: 1em; font-weight: bold; margin-right: 2em; }
    Change/add the values in red.

    Looks good in Firefox, but better double check in IE though.

 

 
Page 1 of 2 12 LastLast

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. Pulling out space between attributes & add to cart button
    By KismetDesign in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 12 Aug 2009, 04:21 AM
  4. Gap between Attributes
    By starcad in forum General Questions
    Replies: 6
    Last Post: 26 Jul 2009, 09:57 AM
  5. How to prevent big gap between text Paragraphs
    By lancebotha in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 14 Jun 2006, 08:18 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