I am working on my personal portfolio and am stuck on a couple of issues.
How come the navbar isn’t aligning according to the CSS? I have set display: flex; and justify-content: flex-end; properties but nothing has changed.
How come there is a white border around the entire document? I tried setting the margin and padding to 0px but that didn’t work.
How come the background color isn’t changing for my
# section? As you can see, the background-color property is set to green but that doesn’t work either. projects
Here is the link to my project
https://codepen.io/kamilahd/pen/qBaBWNX?editors=1100. Please help me answer these questions. I really need help accomplishing this.
I can help you with points No. 2 and No. 3.
Try using the
* selector to set all paddings and margins to 0:
As for point No. 3, you forgot to add the closing
} for your media query.
December 13, 2020, 4:33am
Because you have given it as
@media, it will not be displayed on desktops.
and also as @hassanuddinishak said you have to put the closing brackets
As to the first one, of course (as always) it is doing exactly what you are telling it to. It
is aligning it to the left. Put a
border: 1px solid red; on that navbar and see the problem. I think you want to expand its width.
December 13, 2020, 12:43pm
background animation is beautiful as well as the colors you chose.
Thanks for noticing that!
Got it! Now I know, thank you!
Thanks, I appreciate the feedback!