HOW TO remove button borders in shopping cart?

General ShopSite user discussion

HOW TO remove button borders in shopping cart?

Postby sivstorhaug » Sat Jun 16, 2007 6:38 pm

:?: How can I remove the black borders seen around the buttons in the shopping cart? Strangely enough, there is not a border around all the buttons, and I can tell it looks much better. So what to do.

I can choose to show text or image, and I have chosen image, with the correct link i.g. (this is Norwegian folks, but ignore that fact) : http://sivstorhaug.powweb.com/store/med ... gg_til.jpg

I have tried to add border="0" in every possible location, no luck.

I have also tried to add

<style type="text/css">
img {border: 0;}
</style>

in the page header as I was told that this would fix the issue, but I most certainly have placed in an incorrect place , btw, my page header originally looks like this:




<img src="http://sivstorhaug.powweb.com/store/media/borders/logo2.jpg">

<style type="text/css">
div.productBlock {

height: auto;
border-color: #FF9BFF;
border-width: 4px;
border-style: double;
background-color:#ffffff;
layer-background-color:#ffffff;
visibility: visible;

}


div.productBlock div.checkout {

display: none;
}



</style>

Maybe someone can be an ANGEL and tell me what to do?
sivstorhaug
 
Posts: 13
Joined: Fri Jun 01, 2007 11:44 am

Postby robm » Sat Jun 16, 2007 8:35 pm

If you view the source code, you'll see that each button on the cart has a class set, such as button7, button9, etc... Make sure you set the class definition for these buttons to not include a border, or set the border color to the color of the background.
robm
 
Posts: 463
Joined: Fri Aug 04, 2006 5:46 pm
Location: Connecticut

Great, but...

Postby sivstorhaug » Sat Jun 16, 2007 9:01 pm

Great, but...where? I am a total newbie.

The button info looks like this:


if (blank_flag == "1")
{
if (button == "8") {
document.forms.order.target = "_blank";}
else {
document.forms.order.target = "_self";}
}
else if (blank_flag == "2")
{
if (button == "8") {
document.forms.order.target = "_top";}
}

if ((button == "9") || (button == "6"))
return(true);

Where in this (to me) mess, do I put it, and written how? :)
sivstorhaug
 
Posts: 13
Joined: Fri Jun 01, 2007 11:44 am

Postby robm » Sat Jun 16, 2007 9:05 pm

In your cart, you have the code:

<input type=image src="http://sivstorhaug.powweb.com/store/media/HANDLEKURV/slett_alt.jpg" class="button9" align="bottom" border="0" name="Empty Cart" alt="Empty Cart" tabindex="3" onClick="return(CheckIt(9,2));" >

In the css definition, you have:

.button9 {
border-color: #FFEFFF !important;
}

there are also a few other css defintions for button9. Try the same idea for button7, etc... for the classes for your buttons on the cart.
robm
 
Posts: 463
Joined: Fri Aug 04, 2006 5:46 pm
Location: Connecticut

Postby anxiouskittie » Sun Jun 17, 2007 1:59 pm

where is this css code? in what file/where?

as far as I know, you can't edit these files (the css stylesheets) of shopsite?
anxiouskittie
 
Posts: 81
Joined: Thu Oct 12, 2006 9:39 am

Postby robm » Mon Jun 18, 2007 7:23 am

The CSS code is in the shopping cart template itself. You would have to edit the template to alter the CSS. It is usually included via a ShopSite include, so you would need to copy the shopsite include to your own custom name, edit it, and then edit the cart template to call your custom include.
robm
 
Posts: 463
Joined: Fri Aug 04, 2006 5:46 pm
Location: Connecticut

Postby anxiouskittie » Mon Jun 18, 2007 1:35 pm

that makes sense, thank you :]
anxiouskittie
 
Posts: 81
Joined: Thu Oct 12, 2006 9:39 am


Return to User Forum

Who is online

Users browsing this forum: No registered users and 174 guests