Placing image at the top left of the screen in htm

2019-09-16 14:47发布

问题:

please refer to the image below, I wish to add an image to the extreme left and top of the screen such that the word process appears to the right of it.

<div class="row">
<!--img src="C:/D DRIVE DATA/databit/ymlsite/images/generic/Logo.png", 
height = 50 width = 50/-->
</div>

回答1:

You can add an image to the extreme left and top of the screen by using css.

<div class="row">
    <img src="C:/D DRIVE DATA/databit/ymlsite/images/generic/Logo.png", 
     height = 50 width = 50/>
</div>

CSS:

img {
    width: 400px;
    height: 400px;
    position: absolute;
    left:0;
    top:0;
}

By using this you can align image at left and top of screen. You can refer this code. https://jsfiddle.net/4p0bLurz/