*{ height: 2000px; margin: 0; padding: 0; } .light{ color: red; } .dark{ color: blue; } #top{ position: fixed; height: 40px; width: 40px; }