a.hint-static-link { cursor: pointer; } .hint-static img { max-width: 80%; /* center img trick */ display: block; margin-left: auto; margin-right: auto; } .hints > div { border: 1px solid gray; border-radius: 4px; margin-bottom: 0.5em; margin-top: 0.5em; padding: 0.5em; } .hints > div:first-child { border: 2px solid black; }