0
Why I can't use margin and padding in my code
Error of using margin and padding
9 odpowiedzi
+ 9
Макс Бойка I removed the space from "390 px" and changed it to "390px". There shouldn't be a space after the number
+ 8
Share your code so we can help 🙂
+ 2
Send your code it depends on many factors
0
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="Верстка">
    <title>Типичный верстальщик</title>
    <link rel="stylesheet" href="css/styles.css">
</head>
<body>
<header>
    <div class="container">
        <div class="logo">
            <img src="png/tpverstak.png" alt="logo">
            <a href="#">Типичный верстальщик</a>
        </div>
    </div>
</header>
<section class="container">
</section>
<section class="container">
</section>
<section class="container">
    
</section>
<section class="container">
    
</section>
<section class="container">
    
</section>
<section class="container">
    
</section>
<section class="container">
    
 </section>
 <footer>
 </footer>
</body>
</html>
0
body {
    margin: 0;
    padding: 0;
    font-family: Georgia, 'Times New Roman', Times, serif;
}
header {
    padding-top: 15 px;
    padding-bottom: 10 px;
    background-color: #000;
    color: #fff;
    text-transform: uppercase;
    display: flex;
}
.container {
    padding-right: 390 px;
    padding-left: 390 px;
}
0
What did you do?
0
Oh , thanks






