How do I implement external navbars in HTML5?
August 24, 2013 2:12 PM Subscribe
For a website, I want to have one nav.html file and include it across the site to provide a write-once horizontal navbar at the top of each page. Is there a way of doing this without server-side stuff like PHP?
posted by milkb0at to computers & internet (9 answers total) 5 users marked this as a favorite
It will be a bonus if it's possible for the nav to use things like drop-down menus, and to highlight what the current page is.
This is for a client who has asked me to have a look, but I am not an expert web developer (I have tried a few things like import or include, but I get cross-site warnings in Chrome or no working CSS). The client will do most of the maintenance and just doesn't want to involve PHP (although I understand it would be pretty easy to do). My Google-fu is failing, and I can't tell if it's because I am asking the wrong question or if it really is not possible.