1.right {
2 position: fixed; /* the fixed pos makes it work */
3 right: /*how much you want to move it right
4 put % or px or rem at end of the amount */;
5}
1<html>
2 <head>
3 </head>
4
5 <body>
6 <div style = "position:relative; left:80px; top:2px; background-color:yellow;">
7 This div has relative positioning.
8 </div>
9 </body>
10</html>
1<!DOCKTYPE html> <!-- Start of coding page -->
2<html> <!-- Start of html coding -->
3 <head> <!-- Start of head -->
4 <title>TITLE<title> <!-- Title -->
5 <script>
6 //JavaScript
7 </script>
8 <style>
9 /* CSS */
10 </style>
11 </head> <!-- End of head -->
12 <body> <!-- Start of body -->
13 <div id='mydiv' style = "position:relative; left:0px; top:100px;">
14 Hello!
15 <!-- Use that style tag to positions things, have a play around with it! -->
16 </div>
17 </body> <!-- End of body -->
18<html> <!-- End of html coding -->
19<!-- Add this line of code next to your id:
20
21style = "position:relative; left:0px; top:100px;"
22
23too let you position divs where you want them, you can even position
24them ontop of other divs! -->