How to attach to the top of the website?

How to make div at the top were attached to the corners of the browser, as in this screenshot. 352b32a015a348b48a6b2b4f1d3f1491.png
July 8th 19 at 12:17
3 answers
July 8th 19 at 12:19
Solution
div{
position: fixed;
}
I need to get on this site andwindev.oktahost.ru/?ckattempt=2 around the cap was not indented - rico.Litt commented on July 8th 19 at 12:22
body {
margin: 0;
} - ludwig.Stiedeman commented on July 8th 19 at 12:25
: not working - rico.Litt commented on July 8th 19 at 12:28
running, I'm just in a div this code stuck - rico.Litt commented on July 8th 19 at 12:31
Works, there put. body {margin: 0;!important}, or the ugly way - ludwig.Stiedeman commented on July 8th 19 at 12:34
in the body tag style="margin: 0;" - ludwig.Stiedeman commented on July 8th 19 at 12:37
July 8th 19 at 12:21
margin: 0 on body
July 8th 19 at 12:23
position: fixed
I need to get on this site andwindev.oktahost.ru/?ckattempt=2 around the cap was not indented - rico.Litt commented on July 8th 19 at 12:26

Find more questions by tags HTMLCSS