#1  
Old 02-25-2010, 09:55 AM
Lewis George's Avatar
Lewis George Lewis George is offline
Junior Member
 
Join Date: Jan 2010
Posts: 3
Default 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
Reply With Quote
  #2  
Old 02-25-2010, 11:45 AM
Qetzal's Avatar
Qetzal Qetzal is offline
Ecwid Team
 
Join Date: Sep 2009
Posts: 11,009
Default

Quote:
Originally Posted by Lewis George View Post
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.
__________________
Eugene Kaznacheev
Ecwid Team

@ecwid | Facebook Page | Ecwid Knowledge Base
Reply With Quote
  #3  
Old 02-25-2010, 12:01 PM
Lewis George's Avatar
Lewis George Lewis George is offline
Junior Member
 
Join Date: Jan 2010
Posts: 3
Default Temp Site link

http://www.luvagift.lavoracms.com

Thanks,
Reply With Quote
  #4  
Old 02-25-2010, 03:26 PM
Qetzal's Avatar
Qetzal Qetzal is offline
Ecwid Team
 
Join Date: Sep 2009
Posts: 11,009
Default

Quote:
Originally Posted by Lewis George View Post
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 {

}
__________________
Eugene Kaznacheev
Ecwid Team

@ecwid | Facebook Page | Ecwid Knowledge Base
Reply With Quote
  #5  
Old 03-03-2010, 01:44 PM
Lewis George's Avatar
Lewis George Lewis George is offline
Junior Member
 
Join Date: Jan 2010
Posts: 3
Default

Worked like a charm, thanks
Reply With Quote
Reply

Tags
buttons, category list, css, images

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:35 AM.
Powered by vBulletin® Version 3.8.6. Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.