Skip to content

Instantly share code, notes, and snippets.

@earth3300
Created August 29, 2020 15:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save earth3300/5e5767e6d8a8f085668166d4bd7f9ece to your computer and use it in GitHub Desktop.
Save earth3300/5e5767e6d8a8f085668166d4bd7f9ece to your computer and use it in GitHub Desktop.
<footer class="site site-footer">
<div class="inner">
<nav class="console"
style="display: table; margin: 0 auto; text-align: center;">
<div>
<a href="/" class="arrow previous" title="Previous Page">
<span class="icon icon-left">‹</span>
</a>
<a href="/#" class="arrow next" title="Next Page">
<span class="icon icon-right">›</span>
</a>
</div>
<div>
<a href="/" class="arrow home" title="Home">
<span class="icon icon1x1 icon-home">H</span>
</a>
<a href="../" class="arrow middle up" title="Up One Directory">
<span class="icon icon-up">^</span></a>
<a href="/site/" class="arrow next" title="Site Information and Map">
<span class="icon icon-site">S</span></a>
</div>
</nav>
</div>
</div>
</footer>
@earth3300
Copy link
Author

This is an attempt to create a "generic" navigation "console" that looks and functions similar to the manual gear shift on a car. The trick here is to get it to display centered (which has to be controlled by CSS), while retaining a minimum of styling so that it doesn't "fall apart" if the main stylesheet is misplaced or damaged. That is, it is still readable as a navigation console, with the minimum of (inline) styling used here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment