Fixed Positioning

Defines a fixed position for an element. position: fixed -> And set the values for top, right, bottom and left properties.
snippet
<html>
<head>
</head>
<body>
    <div style="height: 500px">
        <img src="logo.png" style="position:fixed;top:50px; left:50px;"> content
        <br> content
        <br> content
        <br> content
        <br> content
        <br> content
        <br> content
        <br> content
        <br> content
        <br> content
        <br> content
        <br> content
        <br> content
        <br> content
        <br> content
        <br> content
        <br> content
        <br> content
        <br> content
        <br> content
        <br> content
        <br> content
        <br> content
        <br> content
        <br>
    </div>
</body>
</html>
Related Tutorial
Follow Us
https://www.facebook.com/Rookie-Nerd-638990322793530 https://twitter.com/RookieNerdTutor https://plus.google.com/b/117136517396468545840 #
Contents +