This question has already been answered:
- Repression from fixed 4 replies
I made myself a hat, it turned out almost what I wanted. I wrote a block under the header, entered the text. Check, but it is not. Then he thought that he was under his hat. Put out padding 50 and found it. What kind of nonsense is constantly with these blocks, why did he not appear from the bottom of the cap?
@charset "UTF-8"; *{margin: 0;padding: 0;} header{background-color: #000; color:#91949f; min-height:30px; width:100%; position:fixed;} ul {list-style-type: none; margin: 0; padding: 0; overflow: hidden;} li {float: left;} li a, .dropbtn, #profil a{color:#bbbab8;font-size:1.2em; display: inline-block; text-align: center; padding: 10px; text-decoration: none;} .dropdown-content { display: none; position: absolute; background-color: #f9f9f9; min-width: 100px; z-index: 1;} .dropdown-content a { color:gray;background-color:black; padding: 10px; text-decoration: none; display: block; text-align:center;} .dropdown-content a:hover {background-color:gray;color:#fff;} .dropdown:hover .dropdown-content {display: block;} li a:hover, #profil a:hover{background-color:#2e2f2f;color:#fff;} #profil{float:right;min-width:100px;} #tLogo{float: left;padding: 5px;} .osnova{padding:25px;background-color:gray;} <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width"> <meta charset="utf-8"> <title>TatuN</title> <link rel="stylesheet" type="text/css" href="style.css"/> <link href="T.png" rel="chortcut icon" type="image/x-icon"/> </head> <body> <header> <ul> <img id="tLogo" src="TTT.jpg" alt="ttt"/> <li><a href="#home">Главная</a></li> <li><a href="#links">Ссылки</a></li> <li><a href="#onas">Связь</a></li> <li class="dropdown"> <a href="javascript:void(0)" class="dropbtn">Ярлыки</a> <div class="dropdown-content"> <a href="#">Link 1</a> <a href="#">Link 2</a> <a href="#">Link 3</a> </div> </li> <div id="profil"> <a href="">Профиль</a> </div> </ul> </header> <div class="osnova"><h1>Тут будет контент страницы</h1></div> </body> </html>