Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
 All Forums
 General
 Design issues
 How to Add Snazzy Lines in Drop Down
Author « Topic »  

1234
Ecommerce Template Expert

USA
973 Posts

Posted - 02/22/2021 :  12:53:22  
How do I add the snazzy lines that separate each category name in the drop down menu, such as the ones displayed at http://www.ectdemostore.com/responsivestyles/ (hovering over "Products")?

dbdave
ECT Moderator

USA
10408 Posts

Posted - 02/22/2021 :  13:12:08  
Hi, it's just a border on the bottom of the element there.

Here is the CSS from the demo store that does that..

.ectmegamenu > ul > li > ul.normal-sub > li a, div.ectmegamenu > ul > li > ul > li a, div.ectmegamenu > ul > li > ul > li > ul > li a {
color: #333;
border-bottom: 1px solid #333;
padding: 12px;
box-sizing: border-box;


David

1234
Ecommerce Template Expert

USA
973 Posts

Posted - 02/22/2021 :  13:25:57  
Mine seems to have that same code, but no snazzy lines. This is in my ectstylebase.css (line 167)

.ectmegamenu > ul > li > ul.normal-sub > li a,
div.ectmegamenu > ul > li > ul > li a,
div.ectmegamenu > ul > li > ul > li > ul > li a{
color:#333;
border-bottom:1px solid #333;
padding:12px;
box-sizing:border-box;

Vince
Administrator

42754 Posts

Posted - 02/22/2021 :  14:38:45  
Hi Tim
The Mega Menu in the current templates is in a <DIV> called "ectmegamenu" and this is assumed for a lot of the styles. Part of the reason for giving the mega menu a newly named container was just so that it would not affect existing installations. Yours is in a <DIV> called just "menu" and that would be the first step to getting the built in styles to work. But at the same time, some of the styles in /css/megastyle.css would have to be changed to apply not to "menu" but to "ectmegamenu". If you've got a test site I could give it a go for you. I could try it on the live site if you don't mind things going a bit wonky till I get the changes sorted.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

1234
Ecommerce Template Expert

USA
973 Posts

Posted - 02/22/2021 :  14:49:11  
Vince,

Thanks for the info! I do appreciate the offer to help, but it seems like some work and I am won't lose any sleep without it. I just thought it looked good, I wouldn't mind having those snazzy little lines as an option some day. Perhaps something for the suggestions forum

Vince
Administrator

42754 Posts

Posted - 02/23/2021 :  00:38:56  
Actually thinking about it a simpler (though slightly less efficient) way to do this would be to copy and paste the classes but changing "ectmegamenu" to "menu". So for instance...

.menu > ul > li > ul.normal-sub > li a,
div.menu > ul > li > ul > li a,
div.menu > ul > li > ul > li > ul > li a{
color:#333;
border-bottom:1px solid #333;
padding:12px;
box-sizing:border-box;

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

1234
Ecommerce Template Expert

USA
973 Posts

Posted - 02/23/2021 :  06:13:19  
Vince,

Just to be sure...would I just be changing this line in my ectstylebase.css file?

from

.ectmegamenu > ul > li > ul.normal-sub > li a,

to

.menu > ul > li > ul.normal-sub > li a,

Or...do I need to just add this code to the ectstylebase.css file?

.menu > ul > li > ul.normal-sub > li a,
div.menu > ul > li > ul > li a,
div.menu > ul > li > ul > li > ul > li a{
color:#333;
border-bottom:1px solid #333;
padding:12px;
box-sizing:border-box;

Vince
Administrator

42754 Posts

Posted - 02/24/2021 :  02:43:35  
Actually, you want to copy the styles from ectstylebase.css to your site stylesheet, say style.css and edit them there. If you change anything in ectstylebase.css then it will be overwritten by updaters.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.03 seconds. Snitz Forums 2000