将图像样式设置为 div 的右上角

Style an image to be at the top-right of a div

我想将图像样式设置为 div 的右上角,如何实现?请大家帮忙

<html>
<head>
    <style>
        .first{
            width: 200px;
            height: 200px;
            color: blue;
            border: blue;
            border-style: solid;
            border-color: blue;
            background: blue;
        }
    </style>
</head>

<body>
<div class="first">testing this forum
</div>
</body>
</html>

div {
    height: 175px;
    width: 175px;
    background: blue;
    position: relative;
    /* Additionally padding? */
}

div > img {
    height: 25px;
    width: 25px;
    position: absolute;
    top: 0px; right: 0px; 
    /* Change top < 0 and right < 0 to be outside */
}
<div>
  Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque velit elit, tempus non suscipit id, pretium a mi. Aliquam erat volutpat.
  <img src="http://maciejczyzewski.me/assets/images/prints/head.jpeg" />
</div>