Results 1 to 10 of 10
  1. #1
    Join Date
    Apr 2009
    Location
    Edinburgh
    Posts
    130
    Plugin Contributions
    0

    Default CSS issue with displaying Monthly Specials

    Name:  Untitled-2.jpg
Views: 144
Size:  11.3 KB


    There is an image in the attachments which shows what the problem is. The problem is that product images are scrumbled often but not all the time. Any idea how to fix it?

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

    Default Re: CSS issue with displaying Monthly Specials

    Your products are being floated left in your stylesheet. This means that there will be introduced on the right and floated across to the left taking up the highest position they can.

    In the example you've given, the bottom of the top right most product is higher than the bottom of the product to its left. So the fourth product gets stuck there, throwing out the products that follow.

    Why? Can't tell that from a picture along. Would need to see you markup and the css interacting with it.
    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
    Apr 2009
    Location
    Edinburgh
    Posts
    130
    Plugin Contributions
    0

    Default Re: CSS issue with displaying Monthly Specials

    Hi Kuroi

    Would you like to have a look at this first:

    http://www.millers-graphics.co.uk/in..._cart&sort=20a

    Try to refresh the website couple of times, you'll see it changes: it looks fine sometimes but also get scrumbled.

    Thanks

  4. #4
    Join Date
    Apr 2009
    Location
    Edinburgh
    Posts
    130
    Plugin Contributions
    0

    Default Re: CSS issue with displaying Monthly Specials

    I had to refresh aprox. 7 times to get wrong result.

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

    Default Re: CSS issue with displaying Monthly Specials

    You'll get that result any time you have a product in columns one or two where the product name runs to two lines.

    In standard Zen Cart there is a <br class="clearBoth /> tag inserted after each line to ensure that every product can float right across, even when the previous line contains products requiring varying heights.

    On your site these have been removed, which is why products are snagging on those that are taller than normal.
    Kuroi Web Design and Development | Twitter

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

  6. #6
    Join Date
    Apr 2009
    Location
    Edinburgh
    Posts
    130
    Plugin Contributions
    0

    Default Re: CSS issue with displaying Monthly Specials

    Kuroi. Thanks

    I will ad <br class="clearBoth /> to my site. I don't want to add to css file though, instead I would like to add it to template file. Any idea which one would it be? Is it tpl_shopping_cart_default.php?

    Thank you again for your help.

  7. #7
    Join Date
    Apr 2009
    Location
    Edinburgh
    Posts
    130
    Plugin Contributions
    0

    Default Re: CSS issue with displaying Monthly Specials

    What file should I amend? I am trying to figure it out by myself but no luck so far

  8. #8
    Join Date
    Apr 2009
    Location
    Edinburgh
    Posts
    130
    Plugin Contributions
    0

    Default Re: CSS issue with displaying Monthly Specials

    Any ideas?

  9. #9
    Join Date
    Apr 2009
    Location
    Edinburgh
    Posts
    130
    Plugin Contributions
    0

    Default Re: CSS issue with displaying Monthly Specials

    I am still trying to work this out but this is out of my skills. Has anyone have aa idea where to put this <br class="clearBoth /> tag?

  10. #10
    Join Date
    Apr 2009
    Location
    Edinburgh
    Posts
    130
    Plugin Contributions
    0

    Default Re: CSS issue with displaying Monthly Specials

    Got the solution at the end. The problem was missing <br class="clearBoth /> in ... tpl_columnar_display.php

    I have just compared both files from my templata and default template and found out from what line its missing. Placing <br class="clearBoth /> has also fixed my other issues:

    http://www.zen-cart.com/forum/showthread.php?t=168994 with categories display problem

 

 

Similar Threads

  1. Monthly Specials For September - background issue
    By safeg in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 28 Sep 2009, 01:52 PM
  2. Monthly Specials Box???
    By MagicMan in forum General Questions
    Replies: 1
    Last Post: 5 Sep 2008, 03:35 AM
  3. Monthly Specials Question
    By ben harry in forum General Questions
    Replies: 2
    Last Post: 30 May 2007, 12:13 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