body { margin-left: 1em; margin-right: 30ex; } h1{ background: blue; color: white; } h2{ color: blue } .menu { position: fixed; white-space: pre; top: 0.5ex; right: 1ex; width: 13em; margin: 3ex; padding: 1px; background: yellow; }