Why inside the unit the top margin?

0 like 0 dislike
5 views
Maybe the question is stupid but I can't understand why I get indentation? how to make using positioning know. I'm interested in is it
<!DOCTYPE html>DocumentFFF


body { background: #f1f1f1; margin: 0; padding: 0; } .form { margin: auto; height: 440px; width:420px; background-color: #f3f3f3; border-radius: 5px; border:solid 1px #d6d6d6; } .center { padding-top: 50px; } .menu { width: 420px; height: 60px; background-color: #5b6fa5; } .menu_1 { width: 420px; height: 60px; background-color: #5b6ff5; } .menu ul { text-align: right;; list-style: none; height: 60px; } .menu ul li { display: inline-block; border-left: solid 1px #4b5f92; height: 100%; }
by | 5 views

1 Answer

0 like 0 dislike
If you mean the indent on top of the purple block, then there is the tag ul margin to 16px. So they didn't do this:
.menu ul { margin: 0; text-align: right; list-style: none; height: 60px; }
by

Related questions

0 like 0 dislike
2 answers
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
asked May 2, 2019 by kutirie
110,608 questions
257,186 answers
0 comments
32,928 users