Results 1 to 2 of 2

Thread: .Active

  1. #1
    User Carolina's Avatar
    Join Date
    09-05-12.
    Location
    London
    Posts
    99

    Default .Active

    Hi,

    I'd like to understand how does the .active class work in the navigation?
    I'm not using any of Contao styles except the resets.
    By the way, here's the site I'm working on: www.assembly21.com
    It's working OK in the main navigation, but not on the mobile version.
    Do I have no choice but address this class?
    And if you look at my styles, why is the a:link from the mobile nav grab the style from the #footer-text a: link? This doesn't happen if I use li a in the mobile nav rather than li a:link

    Thanks a lot.
    Last edited by Carolina; 02/10/2015 at 14:08.
    Carolina

  2. #2
    User Spooky's Avatar
    Join Date
    01-03-13.
    Posts
    339

    Default

    What exactly is your problem in the mobile version, or what exactly do you want to achieve?

    In the default Contao Navigation, the "active" class is set on the navigation element (both the <li> and the <a>) of the page that you are currently on.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •