Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,378
    Plugin Contributions
    0

    Default Re: CSS Button Overflow Problems

    Quote Originally Posted by Martot View Post
    You can see some products where the "buy now" buttons overlap the picture.
    I didn't realize that was a problem. It looks deliberate, and even looks good. ;-)

    But how does this vertical overlap relate to the size problem? Size in buttons affects width, not height or vertical location.

    Quote Originally Posted by Martot View Post
    Version of CSS buttons is the default that came with v138a.
    Some years ago the CSS Buttons contribution was updated. The one included with ZC was based on an earlier version. It would be a good thing to get the latest version from the Free Software Add Ons (currently v2.6.4) and install it. It's not difficult. Do a careful compare between your existing stylesheet_css_buttons.css and the new one and copy over only the colour or size details as needed.

    Doing this may or may not solve your problem, but it will eliminate other possible problems with the old code.

    Rob

  2. #2
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,378
    Plugin Contributions
    0

    Default Re: CSS Button Overflow Problems

    One thing I just noticed: in the link code for both the product thumbnail and the Buy Now button, you have zenid=[ some code here ]. That should not be in any links, in the sense that it's not at all necessary. I also wonder if it's a security problem, but I don't know enough about that to comment for sure. Any idea why it's there?

    Rob

  3. #3
    Join Date
    Feb 2007
    Location
    United Kingdom
    Posts
    13
    Plugin Contributions
    0

    Default Re: CSS Button Overflow Problems

    Rob,

    Thanks for your help on this. On your advice, I've been through and upgraded to the latest CSS buttons on my local test server (not yet uploaded)- and this has not solved the problem, but is a big improvement in terms of admin and control, so I'll get this uploaded to the live site once i've ironed out the bugs (more overlap problems).

    I've made a couple of changes to my template for the new products page to get rid of the validation errors, so that's all sorted (kind of).

    The only solution I've found so far is to add the following to the CSS buttons stylesheet:

    Code:
    
    
    .button_buy_now { display:inline-block; height:1.4em; line-height:1.4em;
    }
    Not sure why this works, but it seems to sort the problem. Perhaps the default diisplay style is set incorrectly in my main stylesheet?

    The only alternative to the above statement is to add a white border around all my images. This works OK on some pages.

    As for the zenID appearing in the button link, I can't seem to replicate this in my browser.

    Anyway, I've uploaded the new CSS Buttons stylesheet - check out the "nicely" spaced buttons: http://www.sole-sisters.co.uk/index....e=products_new

  4. #4
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,378
    Plugin Contributions
    0

    Default Re: CSS Button Overflow Problems

    Looking good. And no zenID now -- don't know why I saw it before. I simultaneously opened one of my sites to make sure there was no zenID in my links, and there wasn't, but I could certainly see it in yours at the time. Good that it's gone anyway.

    Rob

 

 

Similar Threads

  1. How can I make the Header Search button be a CSS button?
    By makehveli in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 26 Aug 2011, 03:01 AM
  2. adding a class to button element - CSS button addon
    By australican in forum Addon Templates
    Replies: 3
    Last Post: 26 May 2010, 08:53 AM
  3. CSS Overflow/scroll in DIVS?
    By robertrhu in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 16 Jul 2009, 02:24 PM
  4. CSS Element for Add to Cart CSS button?
    By modernm in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 20 Jan 2008, 04:54 PM
  5. CSS Button Height Problems
    By absoluteblock in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 2 Nov 2006, 09:03 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