Jump to content

Blocktopmenu - Adding "first" and "last" classes


Recommended Posts

  • 9 months later...

I also need help with this.  Can anyone describe a code fix for the tpl or php?

 

I realize the style needs to be applied via CSS easy enough, but on my version 1.5.6.2 default theme the target selectors (first-child and last-child) are not defined/applied to the <li> in the code on the first and last menu items. 

 

Thus the css doesnt work because the last li does not have the selector assignment. 

 

Thanks!

Link to comment
Share on other sites

 

 

(first-child and last-child) are not defined/applied to the <li>

 

you don't have to include them to <li class="">

its because you can define styles for first-child and last-child without class="" definition

it will always  work .

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...