I’m trying to get rid of the white space between the #welcome-section
and #projects
sections. I want to make the black touch with the blue.
Is there any way to do so without adjusting margin-top
?
Here is the link to my project.
I’m trying to get rid of the white space between the #welcome-section
and #projects
sections. I want to make the black touch with the blue.
Is there any way to do so without adjusting margin-top
?
Here is the link to my project.
On your <h2>
You need to set its margin-top
to 0px
.
Try setting your body
to have zero margin as well and see if you like it. It has nothing to do with your question, but it will allow for your section
and nav
to have the same width making them line up
Thank you! It worked perfectly.
many HTML elements have their own default styling(headings, lists, links etc), which varies per browser and very often using them, you want to negate such styling, in order to put your own and not conflict with the remaining of your page.
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.