How can I remove the horizontal scroll, while maintaining the adaptability of the site?
/*GLOBAL*/ body { font-family: 'Open Sans', sans-serif, Arial; color: #332E3C; font-size: 16px; font-weight: 300; } a.btn { font-size: 1.2em; text-decoration: none; color: #fff; border: 1px solid #fff; padding: 4px 15px; transition: background-color .5s; } a.btn:hover { background-color: rgba(0, 0, 0, .3); } .button { background: #067655; display: block; color: white; text-decoration: none; padding: 20px; border-radius: 4px; margin-top: 10px; -webkit-transition: background-color 0.2s ease-out; float: left; } .button:hover { background: #23a95c; } div .with_triangle { background-color: #f3f3f3; width: 100%; height: 100px; position: relative; } .with_triangle::before { content: ''; width: 20px; height: 20px; background-color: inherit; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%) rotate(45deg); z-index: -1 } h2 { font-size: 30px; } /*HEADER*/ header { height: 750px; background: url(../images/header_background1200-2.jpg) no-repeat center bottom; position: relative; background-size: cover; align: center; } header a.logo { z-index: 1; position: absolute; display: block; width: 200px; height: 200px; background: url(../images/Teorema_logo_v5.png) no-repeat 0 0; background-size: contain; top: 26px; left: 80px; } header a.logo span { display: none; } header h1 { color: white; font-size: 35px; } header div.hero { position: absolute; width: 42%; top: 230px; left: 5%; } header div.hero h1 { line-height: 1em; margin: 0 0 30px 0; color: #fff; }
<!DOCTYPE html> <html lang="ru"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Π Π°Π±ΠΎΡΠ° ΠΏΡΠ΅ΠΏΠΎΠ΄Π°Π²Π°ΡΠ΅Π»Π΅ΠΌ ΠΌΠ°ΡΠ΅ΠΌΠ°ΡΠΈΠΊΠΈ Π² ΠΎΠ½Π»Π°ΠΉΠ½-ΡΠΊΠΎΠ»Π΅ "Π’Π΅ΠΎΡΠ΅ΠΌΠ°" | Π Π°Π±ΠΎΡΠ° Π΄Π»Ρ ΠΌΠ°ΡΠ΅ΠΌΠ°ΡΠΈΠΊΠΎΠ²</title> <script type="text/javascript" src="js\jquery-3.3.1.min.js"></script> <script type="text/javascript" src="js/smoothscroll.js"></script> <link href="https://fonts.googleapis.com/css?family=Open+Sans:400,700&subset=cyrillic-ext" rel="stylesheet"> <link href="https://fonts.googleapis.com/css?family=Caveat|Open+Sans:400,700" rel="stylesheet"> <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css" integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU" crossorigin="anonymous"> <link rel="stylesheet" href="css/main.css"> <link rel="stylesheet" href="css/normalize.css"> </head> <body> <header> <a class="logo" title="Teorema. ΠΠ½Π»Π°ΠΉΠ½-ΡΠΊΠΎΠ»Π° ΠΏΠΎ ΠΌΠ°ΡΠ΅ΠΌΠ°ΡΠΈΠΊΠ΅" href="#"><span>Teorema</span></a> <div class="hero"> <h1>ΠΠ½Π»Π°ΠΉΠ½-ΡΠΊΠΎΠ»Π° Teorema ΠΈΡΠ΅Ρ ΠΏΡΠ΅ΠΏΠΎΠ΄Π°Π²Π°ΡΠ΅Π»Π΅ΠΉ ΠΌΠ°ΡΠ΅ΠΌΠ°ΡΠΈΠΊΠΈ ΠΏΠΎ ΡΠΊΠ°ΠΉΠΏΡ.</h1> <a class="btn" title="Π Π΅Π³ΠΈΡΡΡΠ°ΡΠΈΡ ΠΏΡΠ΅ΠΏΠΎΠ΄Π°Π²Π°ΡΠ΅Π»Ρ ΠΌΠ°ΡΠ΅ΠΌΠ°ΡΠΈΠΊΠΈ" href="#register">Π Π΅Π³ΠΈΡΡΡΠ°ΡΠΈΡ ΠΏΡΠ΅ΠΏΠΎΠ΄Π°Π²Π°ΡΠ΅Π»Ρ</a> </div> <a class="arrow-down" style="display:block" href="#about"> <div class="arrow-down"></div> </a> </header>
fluid-contanier
- michael_best 1:38 pm