CSS: How do I create a single 'back to top' button?
A little CSS and JQuery can produce a lot of magic in an application. Here is the code. 1. Start with a simple html page. The important item here is to have an 'ID' to navigate to. In my case, I called it 'top'. <html> <head> <base href="/" /> <title>Test Page</title> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <script src=”//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js”></script> <link href="css/myStuff.css" rel="stylesheet" /> </head> <body> <div> <!-- Start Body Content --> <div ng-view role="main" id="top"></div> <!-- End Body Content --> ...