<div id=”quick-menu”>
<h3>Quick Links</h3>
<ul>
<li><a href=”#tables”>Tables</a></li>
</ul>
</div>
For the CSS our aim is to create a floating menu that sits just below the main navigation menu, off to the left side of the page, and follows the user down the page as they scroll. Have a think quickly now before moving forward. How do you think we might do this? Give it a go yourself before even looking at the steps. If you are really struggling then feel free to use the steps below, but do try to give it a go yourself first – you might surprise yourself.
The steps:
Write rules to achieve the following desired output per element:
Expected result: wow, what a difference that makes. We now have a nice and easy way for our users to navigate through our webpage. At any point in the page, no matter how far they scroll, they can always navigate away from the page, or to a different section on the page. This is extremely important with a website like this as it’s very likely to have very long pages, once we have added all of our examples. Adding this navigation option enhances the user experience twofold. Remember, we must always consider the user when creating our websites.
Expected code: