+ 2

Why my code has space between nav and div and section i cleared all the margin and padding

Plz go to my code and help me out https://code.sololearn.com/W6puD5sZML8F/?ref=app

7th Aug 2019, 12:49 AM
daniel
daniel - avatar
27 ответов
+ 1
* = all elements. that would be the first instruction of the css. before body
7th Aug 2019, 3:50 AM
Eze
+ 3
nav ul { display:flex; padding: 0; }
7th Aug 2019, 1:28 AM
Calviղ
Calviղ - avatar
+ 3
try this in te first line: * { margin: 0; padding: 0; } Unify this for all selectors and then adapt each item as you like.
7th Aug 2019, 1:57 AM
Eze
+ 1
Please show your code here so that we can help you https://www.sololearn.com/post/75089/?ref=app
7th Aug 2019, 12:55 AM
Gordon
Gordon - avatar
+ 1
and check... <img src="danielalanaz.jpg" * you need: > and also use h1 in <header>
7th Aug 2019, 3:38 AM
Eze
+ 1
Heracles Ezzequiell sry i didn't get it what is that (*) what does it mean and where should i put it
7th Aug 2019, 3:48 AM
daniel
daniel - avatar
+ 1
* { margin: 0; padding: 0; } body{ ... }
7th Aug 2019, 3:53 AM
Eze
+ 1
Heracles Ezzequiell thank you so much man i have watched some videos on youtube and seen some codes but never seen that
7th Aug 2019, 3:55 AM
daniel
daniel - avatar
+ 1
daniel, compare this with your html an css. Is this what you want? be careful with the use of div!!! <p> </p> = paragraph, <br> = line break. https://code.sololearn.com/Whn2OtE4x92T/?ref=app
7th Aug 2019, 4:13 AM
Eze
+ 1
other things can be improved but look where I put the section that contains "abaut me", look at the h1 of the header. Look at the img and others haha ​​tag. look also the css. summarize the code to the maximum. forgive me for my english haha 🤦🏻‍♂️
7th Aug 2019, 4:17 AM
Eze
+ 1
daniel "about me” to the center?
7th Aug 2019, 4:19 AM
Eze
+ 1
some like this li{ display: inline-block; padding: 5px; border: 1px solid #000; }
7th Aug 2019, 4:48 AM
Eze
+ 1
Heracles Ezzequiell ty for helping me out man much appreciated
7th Aug 2019, 4:50 AM
daniel
daniel - avatar
0
Gordon i have done it can u help me
7th Aug 2019, 1:00 AM
daniel
daniel - avatar
0
Calviղ but my padding shouldn't change it right bcz it's just making space in for the text in the same background i just want the space outside the header to be removed
7th Aug 2019, 3:47 AM
daniel
daniel - avatar
0
Heracles Ezzequiell does this star refers to the whole html?
7th Aug 2019, 3:55 AM
daniel
daniel - avatar
0
Heracles Ezzequiell i feel like div is the easiest to use even that i have so many problems with it
7th Aug 2019, 4:15 AM
daniel
daniel - avatar
0
Heracles Ezzequiell i am still doing some edits on my code it looks better now but i still want to move the text to the center and i don't know how
7th Aug 2019, 4:15 AM
daniel
daniel - avatar
0
I have been trying position or align but nothing is working
7th Aug 2019, 4:16 AM
daniel
daniel - avatar
0
Heracles Ezzequiell about me or other things like in general i want the text to move to center how should i do that
7th Aug 2019, 4:21 AM
daniel
daniel - avatar