Add an arrow to current/active menu

More
10 years 6 months ago #34883 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

Please Log in or Create an account to join the conversation.

More
10 years 6 months ago #34900 by ced1870
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

Joomlack Webmaster and Developer

Please Log in or Create an account to join the conversation.

More
10 years 6 months ago #34902 by zakpoint
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.

Please Log in or Create an account to join the conversation.

More
10 years 6 months ago #34903 by ced1870
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

Joomlack Webmaster and Developer

Please Log in or Create an account to join the conversation.

Time to create page: 0.195 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 1417 guests and one member online