0

Why I can't use margin and padding in my code

Error of using margin and padding

24th Oct 2019, 5:13 PM
Crypton.exe
Crypton.exe - avatar
9 Answers
+ 9
Макс Бойка I removed the space from "390 px" and changed it to "390px". There shouldn't be a space after the number
24th Oct 2019, 7:24 PM
Oma
Oma - avatar
+ 8
Share your code so we can help 🙂
24th Oct 2019, 7:00 PM
Oma
Oma - avatar
+ 2
Send your code it depends on many factors
24th Oct 2019, 5:15 PM
Anna/Аня
Anna/Аня - avatar
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>
24th Oct 2019, 6:08 PM
Crypton.exe
Crypton.exe - avatar
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; }
24th Oct 2019, 6:09 PM
Crypton.exe
Crypton.exe - avatar
24th Oct 2019, 7:14 PM
Crypton.exe
Crypton.exe - avatar
0
What did you do?
24th Oct 2019, 7:23 PM
Crypton.exe
Crypton.exe - avatar
0
Oh , thanks
24th Oct 2019, 7:24 PM
Crypton.exe
Crypton.exe - avatar