The navigational system of your website is one of its most important features.
You can use simple hyperlinks.
You can use fancy 'Navbars' built with Javascript.
You can use simple button images with your hyperlinks.
You can also create buttons using CSS and HTML5 code which mimic the mechanical aspects of Js navbars. And these won't slow your pages or create errors in browsers that don't support Js.
The trend in web design today seems to have moved to long scrolling pages rather than multiple pages that require clicking. Some are even telling us that the click is dead. Personally, I believe we'll end up with a combination of the two.
Enter The Top Button and The Up Button
I can't imagine what a nightmare these endlessly scrolling pages of 10000+ words are for SEO!! May be the reason you don't see these Magnificent Masterpieces in the SERPS. Pay Google or sink into the BLACK HOLE!
<p><a href="#heading" class="top-button">Top</a></p>
Specify the location you want to jump to like so:
<header id="heading">
💡 Time Out for a teaching Moment
In CSS, the !important declaration is used to give a specific style rule the highest priority, overriding any other conflicting rules, regardless of specificity or source order. It ensures that the style is applied no matter what.(From Copilot)
We use it in the CSS on the right (once again because I'm LAZY) to override the settings for the anchor tags in the main division.
How easy is this? The Popover is a little ditty that toggles a message in and out of view. Copy , paste and restyle to your tastes. To Close: Press Escape or Click anywhere on the page.
What you see is what you GIT!
The Code
<!-- Trigger Button -->
<button style="color: #fff;background: #0066cc; font-weight: bold;padding:4px 4px" popovertarget="myPopover">POPOVER</button>
<!-- Popover Element -->
<div style="width:25%; padding: 2% 2%;border: dotted 3px #0066cc;margin: 0 auto" id="myPopover" popover>
What you see is what you GIT!
</div>
Popups
Dialog boxes can be a useful tool in web design. Use your imagination.
The Code
Copy and paste and change the inline style settings to your own tastes.
<dialog id="popup" style="width:75%;margin :0 auto;scrollbar-width:none">
<form method="dialog">
<button style="background:#0066cc; font-size: 1.25rem; color:#fff;padding: 4px 5px; margin: 1% 5%">Close</button>
<div style="padding: 1% 5%;">
<h1>Content Here</h1>
<p>Style as you would any web page</p>
<p class="spacer"> </p>
</div>
<button style="background:#0066cc; font-size: 1.25rem; color:#fff;padding: 4px 5px; margin: 1% 5%">Close</button>
</form>
</dialog>
<!--Popup Button-->
<button onclick="popup.showModal()" style="background:#0066cc; font-size: 1.25rem; color:#fff;padding: 4px 10px">
Open Popup
</button>
Free Tools and Resources
Have you found Thiings yet?.
Over 6000 Free 3D images that you can download (individually or the complete set) and use for personal or commercial projects. You have got to SEE this!!