Results 1 to 7 of 7
  1. #1
    Join Date
    Nov 2009
    Posts
    13
    Plugin Contributions
    0

    Default Get rid of box around add to cart button

    I am a newbie to zencart, but fast appeciating its power (but not its complexity!)

    anyway, if you go to my site at:
    http://www.pageplusdirect.com/zencar...e_plus_refills

    The "add to cart" images have a light gray box around them. I don't think this has to do with "a img {border:none;}"

    The program just puts a box around certain items, like "add to cart" items.

    Can someone help me figure this out? Thanks!

  2. #2
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: Get rid of box around add to cart button

    Un,
    The old TM template, a nasty bearcat but fun to play with..

    Locate this:
    includes/templates/12541/css/stylesheet_tm.css

    Find this:
    input, select, textarea {
    -moz-background-clip:border;
    -moz-background-inline-policy:continuous;
    -moz-background-originadding;
    background:#FFFFFF none repeat scroll 0 0;
    border:1px solid #C0C0C0;
    color:#000000;
    font-family:tahoma;
    font-size:11px;
    line-height:13px;
    padding:2px;
    vertical-align:middle;
    }

    The highlighted red font above is the fix
    1. change 1 to 0

  3. #3
    Join Date
    Nov 2009
    Posts
    13
    Plugin Contributions
    0

    Default Re: Get rid of box around add to cart button

    that was the solution!! Thanks haredo!!

  4. #4
    Join Date
    Nov 2009
    Posts
    13
    Plugin Contributions
    0

    Default Re: Get rid of box around add to cart button

    This fix brought up another problem - when I made the border: 0px, the borders disappear around text input areas, like "e-mail address" or "password."

    How do I work around this problem?

    Well, I think I just answered my own question - I removed the input
    call altogether from my css, and I guess browsers have an automatic "text input border" default.

    At least it is working!

  5. #5
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: Get rid of box around add to cart button

    Un,
    Your Welcome,
    I would do this, just in case you will find additional errors.

    input, select, textarea {
    -moz-background-clip:border;
    -moz-background-inline-policy:continuous;
    -moz-background-originadding;
    background:#FFFFFF none repeat scroll 0 0;
    border:1px solid #C0C0C0;
    color:#000000;
    font-family:tahoma;
    font-size:11px;
    line-height:13px;
    padding:2px;
    vertical-align:middle;
    }

    Change to this:
    select, textarea {
    -moz-background-clip:border;
    -moz-background-inline-policy:continuous;
    -moz-background-originadding;
    background:#FFFFFF none repeat scroll 0 0;
    border:1px solid #C0C0C0;
    color:#000000;
    font-family:tahoma;
    font-size:11px;
    line-height:13px;
    padding:2px;
    vertical-align:middle;
    }

    input {
    -moz-background-clip:border;
    -moz-background-inline-policy:continuous;
    -moz-background-originadding;
    background:#FFFFFF none repeat scroll 0 0;
    border:0px solid #C0C0C0;
    color:#000000;
    font-family:tahoma;
    font-size:11px;
    line-height:13px;
    padding:2px;
    vertical-align:middle;
    }

    1. That will fix up up. :)

  6. #6
    Join Date
    Nov 2009
    Posts
    3
    Plugin Contributions
    0

    Default Re: Get rid of box around add to cart button

    Here's a tip to finding out what css you need to alter;

    Install the Firebug addon for Firefox. It lets you inspect a web page and will show you what line of CSS contains the properties you have selected.

  7. #7
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Get rid of box around add to cart button

    In a standard ZC stylesheet, many of the elements that SHARE a declaration are "nested" together, as this can save a lot of space.

    So, it is not unusual to have to "split up" these nestings to give one particular class or id its own declaration.

    eg:

    Code:
    #firstItem, #secondItem, #thirdItem {
    border: 1px solid #cccccc;
    }
    In the above, ALL (#firstItem, #secondItem, #thirdItem) will have a solid border of 1px in color #cccccc .

    Let's say you want #secondItem to NOT have a border...

    Code:
    #firstItem, #thirdItem {
    border: 1px solid #cccccc;
    }
    
    #secondItem {
    border: none;
    }
    20 years a Zencart User

 

 

Similar Threads

  1. v150 Black border around 'Add to cart' button
    By dwsl2012 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 2 Oct 2012, 10:00 AM
  2. Get Rid Of Border Around "Add to cart" button
    By hcd888 in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 22 Feb 2011, 11:59 PM
  3. Moving Add to Cart Button Around
    By ourcollegetown in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 20 Jan 2009, 11:49 PM
  4. How to get rid of border around buy now button?
    By mcpisik in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 13 Jul 2007, 06:16 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