How do I remove the margin on my header and the div containing the search bar?
My header and the div below the header do not hug the sides of the webpage like I want them to. Despite me setting margin to 0, there is still a 10px margin. How do i fix this. I have tried setting body margin to 0 as well header position is absolute and left right top values are 0 #header{ display: grid; position: absolute; top:0; left:0; right:0; height:90px; background-color: #00719e; text-align: center; grid-template-columns: 13% 13% 13% 22% 13% 13% 13%; min-width: 1570px; margin: 0px; } #searchBox{ margin-top: 90px; height: 50px; background-color: aliceblue; margin-left: 0%; margin-right:
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.