body.kadai6 {background-color: #ffffff; border-right-style: double; margin-right: 11em;} body.kadai6 h1 {color: #000000; background-color: #9370db; } body.kadai6 h2 {color: #0000ff; } div.menu{ position: fixed; white-space: pre; background: #ffff00; top: 2em; right: 0em; width: 9em; line-height: 1.4; margin-left: 0em; padding: 1ex; } div.italy {position: relative; width: 18ex; height: 12ex; border: 1px solid black;} div.italy div:first-child { position: absolute; left: 0; top: 0; width: 6ex; height: 12ex; background: green; } div.italy div+div+div { position: absolute; right: 0; top:0; width: 6ex; height: 12ex; background: red; } div.heno {position: relative; width: 400px; height: 400px; border: 1px solid red; } div.heno div:first-child {float: right;} div.heno div:first-child +div p {font-size: 500%;}