Results 1 to 8 of 8
  1. #1
    Join Date
    Sep 2007
    Posts
    4
    Plugin Contributions
    0

    Default Excessive attribute white space w/no images

    Sorry if this is a dumb question (I only have 3 days of experience with Zencart) but I've spent an hour searching the forum for an answer with no success.

    I'm just starting to set up a site. My product has two attributes -- size and style. Neither of the attributes have any image associated with them. When I look at the product detail page however, it looks like Zen is leaving space for an image for each attribute. Where do I specify 'no image' for the attribute? (Assuming that's my problem.) I've found the "image styles" under product options....but that assumes you have an image.

    http://greenteegraphics.com/zencart/...&products_id=6

    Thanks in advance.

    Richard

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

    Default Re: Excessive attribute white space w/no images

    You can try adding this statement to your stylesheet.css file
    Code:
    #cartAdd {
    clear: both;
    width: 95%;
    }
    But the best way to control this is by rearranging the order in your templates (a copy of this file) tpl_product_info_display.php and add the clear both br entry after the add to cart code block or optionally move the block to after the attributes block
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Sep 2007
    Posts
    4
    Plugin Contributions
    0

    Default Re: Excessive attribute white space w/no images

    Thanks for your suggestions, but I'm still struggling with this. I know nothing about PHP, so please bear with me.

    I'd like to follow "best practices" and make updates to the tpl file rather than the CSS file. Wouldn't the applicable file in this case be the tpl_modules_attributes.php file? Would you please give me a bit more detail as to what I need to rearrange and/or edit?

    Thanks!!!!

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

    Default Re: Excessive attribute white space w/no images

    tpl_product_info_display.php is the file for the way that the information is displayed...others normally get the info and make it available for use.

    Have a look at the above file for it is well constructed in blocks that begin with BOF and end with EOF. These full blocks inclusive, can be rearranged in another order that you might prefer.

    I think that you would want your add to cart block after the attributes block with a clear both in between them
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Sep 2007
    Posts
    4
    Plugin Contributions
    0

    Default Re: Excessive attribute white space w/no images

    Aha! This is starting to make some sense. Thank you for the additional info. I've moved the Add to Cart block to after the Attributes block, and it's definitely an improvement.

    One follow-up question if I may. I tried inserting your 'clear both' code between the two blocks, and the code fragment ends up just displaying on one line on the screen, between the attributes and the add to cart button:

    #cartAdd { clear: both; width: 95%; }

    Was I supposed to wrap this code with some sort of php directives that a newbie such as me would be ignorant of?

    Thanks!

    Richard

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

    Default Re: Excessive attribute white space w/no images

    That was css for what you had previously and not for if you choose to alter the file.

    This is where it should be in the file if you do not have it already
    Code:
    <br class="clearBoth" />
    
    <!--bof Add to Cart Box -->
    Zen-Venom Get Bitten

  7. #7
    Join Date
    Sep 2007
    Posts
    4
    Plugin Contributions
    0

    Default Re: Excessive attribute white space w/no images

    Got it! I really appreciate your help.

    Richard

  8. #8
    Join Date
    Oct 2007
    Posts
    2
    Plugin Contributions
    0

    Default Re: Excessive attribute white space w/no images

    Hello:

    How has you moved the Add to Cart block to after the Attributes block?.

    I'm not able to find the way...

 

 

Similar Threads

  1. Footer images white space and alignment
    By joey779 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 20 Jul 2011, 11:44 PM
  2. Remove excessive space
    By grandpaj in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 23 Dec 2010, 09:12 PM
  3. Vertical white space between images in IE6 and IE7
    By shirster in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 4 Jan 2010, 03:51 AM
  4. White Space....I Know Another White Space Issue...Cant Get Rid Of It
    By enchantedlingerie in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 18 Apr 2007, 03:05 PM
  5. White Space
    By solarchart in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 18 Jan 2007, 10:07 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