|
|

02-25-2010, 09:55 AM
|
 |
Junior Member
|
|
Join Date: Jan 2010
Posts: 3
|
|
Custome Category & Sub-Cat Buttons
Hello,
I've managed to add a background image to my category buttons that changes on the :hover and :active commands, but i want a differant image for the sub categories. at the moment its just display's the category image at the top of the sub-list, this doesn't look very good at all.
Anyone know who i might be able to achive this?
my css:
.ecwid-categories-vertical-table-cell-selected{
background-image:none;
background-color:#fff;
}
.ecwid-categories-vertical-table-cell{
background:url('userfiles/img/btns.jpg') 0 0 no-repeat;
margin:0px;
padding:0px;
width: 180px;
height: 30px;
}
.ecwid-categories-vertical-table-cell:hover{
background:url('userfiles/img/btns.jpg') -180px 0 no-repeat;
}
.ecwid-categories-vertical-table-cell:active{
background:url('userfiles/img/btns.jpg') -360px 0 no-repeat;
}
Thanks
|

02-25-2010, 11:45 AM
|
 |
Ecwid Team
|
|
Join Date: Sep 2009
Posts: 11,009
|
|
Quote:
Originally Posted by Lewis George
Hello,
I've managed to add a background image to my category buttons that changes on the :hover and :active commands, but i want a differant image for the sub categories. at the moment its just display's the category image at the top of the sub-list, this doesn't look very good at all.
Anyone know who i might be able to achive this?
|
Please post a link to your store.
|

02-25-2010, 12:01 PM
|
 |
Junior Member
|
|
Join Date: Jan 2010
Posts: 3
|
|
Temp Site link
|

02-25-2010, 03:26 PM
|
 |
Ecwid Team
|
|
Join Date: Sep 2009
Posts: 11,009
|
|
Quote:
Originally Posted by Lewis George
|
Thank you for the link.
Use this CSS class to set a background for such items:
HTML Code:
div.ecwid-categories-vertical td.gwt-MenuItem {
}
|

03-03-2010, 01:44 PM
|
 |
Junior Member
|
|
Join Date: Jan 2010
Posts: 3
|
|
Worked like a charm, thanks
|

05-25-2013, 08:26 AM
|
 |
Paid Member
|
|
Join Date: Oct 2012
Posts: 11
|
|
Quote:
Originally Posted by Lewis George
Worked like a charm, thanks 
|
Hello,
Can you please post the final code, because I am a little bit confused ...
Thank you!
Quote:
Originally Posted by Qetzal
Thank you for the link.
Use this CSS class to set a background for such items:
HTML Code:
div.ecwid-categories-vertical td.gwt-MenuItem {
}
|
Hello,
Can you please post the final code, because I am a little bit confused ...
Thank you!
Last edited by Maya; 05-27-2013 at 01:01 PM.
|

05-27-2013, 01:03 PM
|
 |
Ecwid Team
|
|
Join Date: Feb 2010
Location: Ecwid headquarter
Posts: 3,991
|
|
The final code for background changing will look like this:
Code:
div.ecwid-categories-vertical td.gwt-MenuItem {
background-color: #000000;
}
where #000000 color code can be changed as you needed: html-color-codes.info
__________________
Maria Nikiforova, Ecwid Team
------------------
Welcome to our Knowledge Base with a lot of answers, tips and receipts!
Please, rate my reply here
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT. The time now is 03:05 PM.
Powered by vBulletin® Version 3.8.6. Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
|