F
F
Fargoth2018-07-23 17:02:24
css
Fargoth, 2018-07-23 17:02:24

How is it possible to remove the incomprehensible indent between blocks when scaling (enlarging) the page?

When the page is enlarged in the browser and at smaller resolutions (for example, 800x600), an indent appears between the blocks, which appears inexplicably. What could be the problem?
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
  <title>Самый лучший сайт во вселенной</title>
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
  <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.1/css/all.css">
  <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.2/css/bootstrap.min.css" integrity="sha384-Smlep5jCw/wG7hdkwQ/Z5nLIefveQRIY9nfy6xoR1uRYBtpZgI6339F5dgvm/e9B" crossorigin="anonymous">
    <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.2/js/bootstrap.min.js" integrity="sha384-o+RDsa0aLu++PJvFqy8fFScvbHFLtbvScb8AjopnFD+iEQ7wo/CG0xlczd+2O/em" crossorigin="anonymous"></script>
  <link rel="stylesheet" href="style.css" type="text/css"/>
  <link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
    <! font-family: 'Roboto', sans-serif;>
    <style>
       @import "https://fonts.googleapis.com/css?family=Roboto" screen;
  </style>
  </head>
  <body>
    <div class="bgpic">
    <div class="menu">
      <ul class="menulist">
        <li><a href="">Главная</a></li>
        <li><a href="">Личный кабинет</a></li>
        <li><a href="">Общение</a></li>
        <li><a href="">О нас</a></li>
      </ul>
    </div>
</div>
    <div class="ginfo">
    Добро пожаловать!
    </div>
    </div>
    <div class="news">
    <span class="nadpis-nowosti">
      <h4>
      Новости <i class="far fa-newspaper"></i>
      </h4>
      </span>
...

css
body {
background-color: #004e50;
}

.bgpic {
    background-image: url(\bg.png);
    background-repeat: no-repeat;
    background-size:100%;
    box-shadow: black 1px 1px 1px;
    height: 55em;
}
.news { /* внешний блок новостей */
  margin-top:0.9em;
  background-color: #00d4be;
  float: left;
  width:25%;
  color:white;
}
.nadpis-nowosti {
  text-align: center;
}
.new-content { 
  padding-top: 1.15em;
  padding-bottom: 1.15em;
  background-color:white;
  color:black;
  font-family: Roboto;
}
.newtitle {
  font-weight:bold;
  font-size:1.2em;
}

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question