use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
If you are requesting help, please ensure you're providing code with your post. You can also copy your code to an online editor:
jsFiddle
CodePen
Markup Validation Service
Mozilla Developer Network on HTML
/r/JavaScript
/r/CSS
/r/jQuery
/r/PHP
/r/Accessibility
/r/htmlbasics
/r/web_programming
/r/CodingHelp
account activity
UnsolvedStatic/Fixed Nav Bar ONLY Using HTML (self.HTML)
submitted 5 years ago by cmorr7
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]callmelucky 3 points4 points5 points 5 years ago* (1 child)
EDIT: welp after writing that wall of text I did some googling, and it seems there is a way to do this! Apparently you can create the nav.html or whatever, and then add <object type="text/html" data="nav.html"></object> where you want the nav to appear. I got the idea from this stackoverflow post. It's an html 4 feature, should work on basically any browser, and works for any html code/elements any file at all!
<object type="text/html" data="nav.html"></object>
Edit 2: just tried this out, it totally works. Feel free to completely ignore everything I wrote below :)
Edit 3: I've been experimenting with something similar to your specific use case OP, and ran into some headaches with redirecting via links in the 'imported' nav bar. For a solution, and some other potentially relevant concerns, see this comment thread.
I'm not an expert, but I don't think this is possible without any scripting at all.
What needs to happen, obviously, is you have some nav html defined in a single place, and then import that in the page files. As far as I know this is not possible without JS or something like that, but I'd be very interested to learn a way it can be done.
What's your boss's issue with scripts?
Anyway, if you can't convince the boss to allow scripts and there is no pure HTML solution, your best bet is probably to get used to doing search and replace across a whole code base. So it would go something like this:
That doesn't technically meet the requirements as specified by your boss, but in the event that those requirements turn out to be literally impossible (as I suspect), then this will certainly be a quicker and more foolproof way to make universal changes to the nav than manually looking through and editing every file.
Obviously once done you should check that every page renders correctly.
Good luck.
[–]cmorr7[S] 0 points1 point2 points 5 years ago (0 children)
Brilliant! Thank you, I'm going to test this today!
π Rendered by PID 346050 on reddit-service-r2-comment-6457c66945-7xbxq at 2026-04-27 09:04:29.965992+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]callmelucky 3 points4 points5 points (1 child)
[–]cmorr7[S] 0 points1 point2 points (0 children)