Results 1 to 6 of 6
  1. #1
    Join Date
    Mar 2007
    Location
    Louisville, Kentucky, USA
    Posts
    42
    Plugin Contributions
    0

    Default .back and .forward classes -> poor rendering in Firefox for me

    There are places throughout my store (based on Simple Zen template) where there is one div with class="forward" followed by another with class="back".

    All of these are rendering perfectly in IE6, but are exhibiting odd behavior in Firefox 2 (presumably in any Firefox release).

    For instance, on a product information page, I have the "Tell a Friend" button followed by the "Reviews" button, and the code is output like so:
    Code:
    <!--bof Tell a Friend button -->
    <div id="productTellFriendLink" class="buttonRow forward"><a href="http://127.0.0.1/1-store-bryansbush-com/index.php?main_page=tell_a_friend&amp;products_id=8"><img src="includes/templates/simple_zen/buttons/english/button_TellAFriend.gif" alt="Tell a Friend" title=" Tell a Friend " width="113" height="43" /></a></div>
    <!--eof Tell a Friend button -->
    
    <!--bof Reviews button and count-->
    <div id="productReviewLink" class="buttonRow back"><a href="http://127.0.0.1/1-store-bryansbush-com/index.php?main_page=product_reviews_write&amp;products_id=8"><img src="includes/templates/simple_zen/buttons/english/button_write_review.gif" alt="Write Review" title=" Write Review " width="171" height="34" /></a></div>
    <br class="clearBoth" />
    <!--eof Reviews button and count -->
    The forward and back classes are defined like so:
    Code:
    .back {
        float: left;
        }
        
    .forward, #shoppingCartDefault #PPECbutton { {
        float: right;
        }
    In this case, in Firefox, the "Tell a Friend" button is stacked on top of the "Reviews" button on the left.

    But... the "Tell a Friend" button _should_ be appearing on the right.

    Can anyone tell me what I can look for to resolve this?

    Thanks!
    Steve Magruder, Freelance Web Programmer
    WebCommons :: Web Programming Services

  2. #2
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: .back and .forward classes -> poor rendering in Firefox

    Do you have a URL for the site?

  3. #3
    Join Date
    Mar 2007
    Location
    Louisville, Kentucky, USA
    Posts
    42
    Plugin Contributions
    0

    Default Re: .back and .forward classes -> poor rendering in Firefox

    Since the store hasn't been opened to the public, I cannot place the link here.

    However, if you like, I can provide you a link via private message.
    Steve Magruder, Freelance Web Programmer
    WebCommons :: Web Programming Services

  4. #4
    Join Date
    Mar 2007
    Location
    Louisville, Kentucky, USA
    Posts
    42
    Plugin Contributions
    0

    Default Re: .back and .forward classes -> poor rendering in Firefox

    Oh, never mind...

    My 40-year-old eyes were playing tricks on me.

    I didn't see the extra left bracket in:
    Code:
    .forward, #shoppingCartDefault #PPECbutton { {
    float: right;
    }
    And this appears to be the original code from the Simple Zen template I downloaded from the Zen Cart site.

    This should teach me to regularly run my (and others') CSS through a validator. I'm smacking my own face right now.

    Steve Magruder, Freelance Web Programmer
    WebCommons :: Web Programming Services

  5. #5
    Join Date
    Jan 2005
    Location
    USA, St. Louis
    Posts
    3,710
    Plugin Contributions
    9

    Default Re: .back and .forward classes -> poor rendering in Firefox

    Quote Originally Posted by Stevietheman View Post
    There are places throughout my store (based on Simple Zen template) where there is one div with class="forward" followed by another with class="back".

    All of these are rendering perfectly in IE6, but are exhibiting odd behavior in Firefox 2 (presumably in any Firefox release).

    For instance, on a product information page, I have the "Tell a Friend" button followed by the "Reviews" button, and the code is output like so:
    Code:
    <!--bof Tell a Friend button -->
    <div id="productTellFriendLink" class="buttonRow forward"><a href="http://127.0.0.1/1-store-bryansbush-com/index.php?main_page=tell_a_friend&amp;products_id=8"><img src="includes/templates/simple_zen/buttons/english/button_TellAFriend.gif" alt="Tell a Friend" title=" Tell a Friend " width="113" height="43" /></a></div>
    <!--eof Tell a Friend button -->
    
    <!--bof Reviews button and count-->
    <div id="productReviewLink" class="buttonRow back"><a href="http://127.0.0.1/1-store-bryansbush-com/index.php?main_page=product_reviews_write&amp;products_id=8"><img src="includes/templates/simple_zen/buttons/english/button_write_review.gif" alt="Write Review" title=" Write Review " width="171" height="34" /></a></div>
    <br class="clearBoth" />
    <!--eof Reviews button and count -->
    The forward and back classes are defined like so:
    Code:
    .back {
        float: left;
        }
        
    .forward, #shoppingCartDefault #PPECbutton { {
        float: right;
        }
    In this case, in Firefox, the "Tell a Friend" button is stacked on top of the "Reviews" button on the left.

    But... the "Tell a Friend" button _should_ be appearing on the right.

    Can anyone tell me what I can look for to resolve this?

    Thanks!
    The error is there in the code above. There are two {'s after #PPECbutton. My fault. Remove that extra one and it should be fine.

  6. #6
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: .back and .forward classes -> poor rendering in Firefox

    Might want to post something in the support fourm here:

    www.zen-cart.com/forum/showthread.php?t=44474

 

 

Similar Threads

  1. 1 step forward, 3 steps back!
    By lilkanini in forum General Questions
    Replies: 3
    Last Post: 4 Feb 2011, 07:26 PM
  2. Additional Images not rendering properly in Firefox
    By strugglingnovice in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 8 Jul 2010, 02:14 PM
  3. Safari/Rendering vs Firefox
    By Soniccc in forum General Questions
    Replies: 3
    Last Post: 6 Jul 2010, 05:21 PM
  4. Rendering problems with Firefox
    By Cable Guy in forum Addon Templates
    Replies: 2
    Last Post: 5 Apr 2008, 07:54 PM
  5. Site not rendering correctly in FireFox
    By mlm2005 in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 13 Aug 2006, 04:33 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