Page 1 of 3 123 LastLast
Results 1 to 10 of 26
  1. #1
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Stylesheet Bug applies to most contributed templates

    My thanks to bobski2 AT yahoo DOT com who drew my attention to the following stylesheet bug.

    If you use the "tell a friend" facility in Internet Explorer, the text box and extends behind the right column dragging the send button with it, making the facility unusable.

    This affects the following templates and probably most sites that have been derived from them:
    Template Default
    Contemporary Green Classic
    Start Aqua Shade and its variants
    Arch Shoppe
    Bare Bones
    Blue Strip Reloaded
    Candied Apple and Candied Blueberry
    Classic XHTML
    Future Zen (pre-version 1.4)
    Night Fall
    Pretty in Pink
    Red Sky
    Sage and
    Sophy Blue

    For clarity, the following templates are NOT affected:

    Pre-1.3.5 Classic
    Gloss Black and Gloss Blue
    Nifty Zen
    Mostly Grey
    Purples Hades
    Simple Zen

    Fortunately there is a very simple correction. Find the following near the top of your stylesheet and remove the line in red. Not only does this fix the problem specified, but the Contact Us page looks nicer in Firefox too!
    TEXTAREA {
    float: left;
    margin: auto;
    display: block;
    width: 95%;
    }
    Kuroi Web Design and Development | Twitter

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

  2. #2
    Join Date
    Dec 2005
    Posts
    1,059
    Plugin Contributions
    2

    Default Re: Stylesheet Bug applies to most contributed templates

    Thanks for the heads up, kuroi. I should have remembered about that
    little bug!
    [FONT=Arial]Country Kitty Crafts[/FONT][FONT=Arial]
    [/FONT] [FONT=Garamond]
    [/FONT]

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

    Default Re: Stylesheet Bug applies to most contributed templates

    I'm pretty embarassed by this too . I remember proposing a fix to this problem in the forum, but completely failed to spot that it applied to the majority of 1.3+ sites
    Kuroi Web Design and Development | Twitter

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

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Stylesheet Bug applies to most contributed templates

    /me peeks at both templates in v1.3.5 ... oh lookie ... it's a float: left; ...

    I wasn't sweatin' ... that was the lighting ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    May 2006
    Location
    Australia
    Posts
    110
    Plugin Contributions
    2

    Default Re: Stylesheet Bug applies to most contributed templates

    Thanks for pointing that out Kuroi.

    Code:
    TEXTAREA {
        float: left;
        margin: auto;
        display: block;
        width: 95%;
    }
    I remember removing that from the mostly grey template because the code is so strange, it should really be like this:

    Code:
    textarea {
        width: 100%;
    }
    This should work fine, note that the tag doesn't need (shouldn't) be uppercase.

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

    Default Re: Stylesheet Bug applies to most contributed templates

    Kuroi comes to the rescue again, a definite CSS artiste!

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

    Default Re: Stylesheet Bug applies to most contributed templates

    Hi Rowan. Nice job on Bare Bones. I always intended a template consisting of a nothing but a stylesheet to be the follow-up (and logical successor of future Zen) but never got around to it. But it's even better to see somebody else pushing this envelope.

    The minimalist approach i.e. "textarea {width: 100%}" works well for some templates, but just a smidgen of horizontal padding and IE is off messing up again by running the fieldset behind the right column (boring and unoriginal) - not so spectacularly, but certainly unaesthetically.

    I'm finding the following to be a good solution in those situations
    TEXTAREA {
    margin: 0.5em auto 0;
    display:block;
    width: 98%;
    }
    Kuroi Web Design and Development | Twitter

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

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

    Default Re: Stylesheet Bug applies to most contributed templates

    Awww Sketchy you're making me blush . Besides if I'd been a bit more awake, when I saw this the first time around, there'd have been a lot less templates out there now with this problem . Credit is due to those like Rowan, mmaxwell and jettrue who spotted that there was something hinky about this styling and avoided the problem in the first place.
    Kuroi Web Design and Development | Twitter

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

  9. #9
    Join Date
    May 2006
    Location
    Australia
    Posts
    110
    Plugin Contributions
    2

    Default Re: Stylesheet Bug applies to most contributed templates

    a smidgen of horizontal padding and IE is off messing up
    I'll make a note of that, thanks again for the heads-up.

  10. #10
    Join Date
    Jul 2005
    Location
    Charlottesville, VA
    Posts
    431
    Plugin Contributions
    0

    Default Re: Stylesheet Bug applies to most contributed templates

    Hi, all.

    I've tried the solutions suggested above, but when I use graphical buttons with class "forward" they slide under the right column in IE, and TEXTAREA has little to do with it. I like my buttons, I might one day go to some nice CSS buttons, but right now I like them.

    I had had a serious problem with customers not being able to check out because the "continue" button was hiding under the right column! Thanks, IE, for not handling float:right correctly.

    Here's how I fixed that issue:

    1) Add this style to your custom stylesheet:
    Code:
    /* Holly hack for IE. Prevent Continue button from sliding under right column \*/
    * html .continueFix { width:60% }
    /* */
    This * html preface will prevent this style from being applied to non-IE browsers.

    2) Make custom versions of tpl_checkout_payment_default.php, tpl_checkout_shipping_default.php, tpl_tell_a_friend.default.

    3) Edit those files: Where you see <div class="buttonRow back"> and <div class="buttonRow forward">, wrap those divs and any following echo divs in <div class="continueFix">.

    Here's a specific example from tpl_checkout_payment_default.php:
    Code:
    <div class="continueFix">
    <div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_CONTINUE_CHECKOUT, BUTTON_CONTINUE_ALT, 'onclick="submitFunction('.zen_user_has_gv_account($_SESSION['customer_id']).','.$order->info['total'].')"'); ?></div>
    <div class="buttonRow back"><?php echo TITLE_CONTINUE_CHECKOUT_PROCEDURE . '<br />' . TEXT_CONTINUE_CHECKOUT_PROCEDURE; ?></div></div>
    This worked for me, and may work for other folks too.
    Last edited by dbrewster; 21 Sep 2006 at 06:54 PM.

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. Some Bug Fixes I found for Template Monster templates
    By patrioticflags in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 19 Oct 2012, 02:06 PM
  2. Contributed templates will not show
    By Murrini in forum Addon Templates
    Replies: 3
    Last Post: 11 Nov 2007, 11:32 PM
  3. [not a bug] 1.37 stylesheet.css
    By Woodymon in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 31 Dec 2006, 08:57 AM
  4. where to find the contributed templates...
    By webgodjj in forum Addon Templates
    Replies: 1
    Last Post: 25 May 2006, 07:02 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