Placing image at the top left of the screen in html

倾然丶 夕夏残阳落幕 提交于 2019-12-13 03:15:31

问题


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/



来源:https://stackoverflow.com/questions/45756725/placing-image-at-the-top-left-of-the-screen-in-html

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!