close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

CSS Styling - image backgrounds for basket / checkout buttons? .ec_FormButton

Thread began 3/29/2014 2:16 am by Nathon Jones Web Design | Last modified 4/03/2014 12:31 pm by Jason Byrnes | 1034 views | 3 replies |

Nathon Jones Web Design

CSS Styling - image backgrounds for basket / checkout buttons? .ec_FormButton

We'd like to style the .ec_FormButton buttons with graphics so we tried changing this:

eC_Clean_Pacifica_Arial .eC_FormButton {
border: none;
background-color:#4870AA; /* Accent_1 */
color: #FFFFFF; /* Global_White */
margin: 0 0 0 1px;
padding: 10px 0 10px 0;
font-size: x-small;
text-align: center;
width: 120px;
}

...to this:

.eC_Clean_Pacifica_Arial .eC_FormButtonCHKOUT {
background: url(energy-saving-light-bulbs/btn-basket-checkoutoff.png);
background-repeat: no-repeat;
border: none;
color: #FFFFFF; /* Global_White */
margin: 0 0 0 1px;
padding: 0;
font-size: x-small;
text-align: left;
width: 146px;
height: 41px;
}

Example here (checkout button on our basket page):
https://www.ledwarehouseuk.com/indexHOME.php > Select a Product > Add to Basket > Basket Page


It does everything but display the image! Why is that?
NJ

Sign in to reply to this post

Jason ByrnesWebAssist

use firebug with FireFox to troubleshoot css issues. see the attached screen shot

fire bug reports that the image cannot be loaded.

remember the path for the iamge needs to be realtive to the CSS file. the css files you define this in is 2 levels deep:
WA_eCart/CSS/eC_Clean_Pacifica_Arial_Custom.css

so your path needs to be relative to that file:
background: url(../../energy-saving-light-bulbs/btn-basket-checkoutoff.png);

or use a site relative path:
background: url(/energy-saving-light-bulbs/btn-basket-checkoutoff.png);

Sign in to reply to this post

Nathon Jones Web Design

Firebug and Firefox

I just tried to use Firefox and Firebug and images that appear fine in Internet Explorer are completely missing in Firefox!
http://www.ledwarehouseuk.com/shopping-basket.php

On our basket page, we have a refresh icon next to the quantity box but, in Firefox, it's just not there. Yet our reference for it is fine, otherwise it wouldn't be displaying in IE would it.

Firebug isn't seeing any problem with the file reference.

Sign in to reply to this post

Jason ByrnesWebAssist

try adding float: right; to the following selector:

.eC_Clean_Pacifica_Arial .eC_RefreshButton

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...