body{ background-color: #ffffff; border-right-style: double; margin-right: 11em; } h1{ background-color: rgba(137, 43, 226, 0.507); margin-right: 2em; } h2{ color: blue; } hr { border: 1px solid; margin-right: 2em; } .menu{ position: fixed; white-space: pre-line; background: #ffff00; top: 2em; right: 0em; width: 9em; line-height: 1.4; margin-left: 0em; padding: 1ex; } .main{ width: 60%; margin-right: 5em; } .italy{ position: relative; width: 18ex; height: 12ex; border: 1px solid black; } .italy :first-child{ position: absolute; left: 0; top: 0; width: 6ex; height: 12ex; background: green; } .italy div+div+div{ position: relative; left: 12ex; top: 0; width: 6ex; height: 12ex; background: red; } .nigaoe{ position: relative; width: 400px; height: 300px; border: 1px solid black; } .aiu{ position: relative; white-space: pre-line; font-size: 500%; } .nigaoe :first-child{ position: relative; width: 199px; height: 137px; background-image: url(nigaoe.jpg); }