Kunena Menu
Add an arrow to current/active menu
10 years 6 months ago #34883
by zakpoint
Add an arrow to current/active menu was created by zakpoint
Hi, how I can add a small arrow under the active menu ?
my own solutions:
div#maximenuck91 ul.maximenuck li.maximenuck.level1:hover, div#maximenuck91 ul.maximenuck li.maximenuck.level1.active {
background-image:url(../images/arrow-down.png);background-repeat:no-repeat;background-position:right bottom;
}
of course a try "position:right 30px".
this is ok for appear arrow, but it remains within the <li ..> and can not go under like with "position: absolute" .. (I've tried to integrate but without success)
please, see attach file.
Thank you, Andrew
my own solutions:
div#maximenuck91 ul.maximenuck li.maximenuck.level1:hover, div#maximenuck91 ul.maximenuck li.maximenuck.level1.active {
background-image:url(../images/arrow-down.png);background-repeat:no-repeat;background-position:right bottom;
}
of course a try "position:right 30px".
this is ok for appear arrow, but it remains within the <li ..> and can not go under like with "position: absolute" .. (I've tried to integrate but without success)
please, see attach file.
Thank you, Andrew
Please Log in or Create an account to join the conversation.
10 years 6 months ago #34900
by ced1870
Joomlack Webmaster and Developer
Replied by ced1870 on topic Add an arrow to current/active menu
Hi
you can use the :after or :before pseudo class to add a container where you can define your arrow
you can also do it with CSS only (without image) using the css triangle technique
there is an example in the theme css3megamenu for maximenu, you can look in the file at the beginning to find the code
CEd
you can use the :after or :before pseudo class to add a container where you can define your arrow
you can also do it with CSS only (without image) using the css triangle technique
there is an example in the theme css3megamenu for maximenu, you can look in the file at the beginning to find the code
CEd
Joomlack Webmaster and Developer
Please Log in or Create an account to join the conversation.
10 years 6 months ago #34902
by zakpoint
Replied by zakpoint on topic Add an arrow to current/active menu
Hi Ced, perfect !
I add this class:
ul.maximenuck li.item104.current::after {
border-color: #C61A00 transparent transparent transparent;
content: ""; display:block; position:absolute; bottom: -14px;
border-style: solid;border-width: 8px;
height: 0px;width: 0px;
}
ul.maximenuck li.item104:hover::after{
border-color: #C61A00 transparent transparent transparent;
content: ""; display:block; position:absolute; bottom: -14px;
border-style: solid;border-width: 8px;
height: 0px;width: 0px;
}
I have to add it for every item becouse have different background colour for each link.. but work good !

Thank you.
I add this class:
ul.maximenuck li.item104.current::after {
border-color: #C61A00 transparent transparent transparent;
content: ""; display:block; position:absolute; bottom: -14px;
border-style: solid;border-width: 8px;
height: 0px;width: 0px;
}
ul.maximenuck li.item104:hover::after{
border-color: #C61A00 transparent transparent transparent;
content: ""; display:block; position:absolute; bottom: -14px;
border-style: solid;border-width: 8px;
height: 0px;width: 0px;
}
I have to add it for every item becouse have different background colour for each link.. but work good !
Thank you.
Please Log in or Create an account to join the conversation.
10 years 6 months ago #34903
by ced1870
Joomlack Webmaster and Developer
Replied by ced1870 on topic Add an arrow to current/active menu
cool !
you can have a generic styles for
ul.maximenuck li.maximenuck.current::after { all styles here }
and then only use the .itemXX selector just to change the border color for each item
you can have a generic styles for
ul.maximenuck li.maximenuck.current::after { all styles here }
and then only use the .itemXX selector just to change the border color for each item
Joomlack Webmaster and Developer
Please Log in or Create an account to join the conversation.
Time to create page: 0.195 seconds




