Opened 8 years ago
Last modified 8 years ago
#3754 new enhancement
Sticky menu for Play0AD.com
Reported by: | Davide | Owned by: | |
---|---|---|---|
Priority: | Nice to Have | Milestone: | Website / Forum |
Component: | Website / Forum | Keywords: | navigation |
Cc: | Patch: |
Description
I tend to navigate easier and faster with so called "sticky navigation menu", and I usually recommends it to most websites. To achieve this at Play0AD.com, check /wp-content/themes/nova/style.css at line 481 and change:
#navbar { background: url(images/menu-bg.png) center center; border-bottom: 1px solid #E7BF47; border-top: 1px solid #000; font-weight: 700; height: 30px; margin: 0 auto; width: 1000px; }
to
#navbar { background: url(images/menu-bg.png) center center; border-bottom: 1px solid #E7BF47; border-top: 1px solid #000; font-weight: 700; height: 30px; margin: 0 auto; width: 1000px; position: sticky; top: 0; z-index: 100; }
I set z-index to 100, but it may needs further tests to check if there are objects on the site with higher values.
Note:
See TracTickets
for help on using tickets.
Hi,
I'm new here but i wouldn't take "position:sticky" for that purpose. As far as i know it's not supported by each browser
i would do it like: