Skip to content

Instantly share code, notes, and snippets.

@shawnthompson
Created March 26, 2020 20:19
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 shawnthompson/1b41b4681d241fb4ae1b23ced6bc23b4 to your computer and use it in GitHub Desktop.
Save shawnthompson/1b41b4681d241fb4ae1b23ced6bc23b4 to your computer and use it in GitHub Desktop.
Shawn's pull out idea
<!DOCTYPE html>
<html>
<head>
<title>Page with pull outs</title>
</head>
<body>
<header>
<nav>
<ul>
<li><a href="#main">Skip to main content</a></li>
<li><a href="#pullOuts">Skip to most important</a></li>
</ul>
</nav>
</header>
<main>
<h1 id="main">Main content</h1>
<p>This is a big article with many pull outs...</p>
<div data-pullout="pullout1">Insert pull out here</div>
</main>
<aside class="sr-only">
<h1 id="pullOuts">Most important sections</h1>
<section id="pullout1">
<h2>First best part of this article</h2>
<p>blah blah blah</p>
</section>
</aside>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment