Home > OS >  How to delete indent from div element? HTML, CSS
How to delete indent from div element? HTML, CSS

Time:04-19

I create navigation block, but it's look like there is some margin exist, ca someone give advice for that issue?

Looks like this Below I try delete that by setting padding, margin = 0px;

div.topnav
{
    margin: 0px;
    padding: 0px;
    width: 100%;
    height: 50px;
    background-color: black;
    display: inline-block;
}

CodePudding user response:

try this:

body{
    margin: 0;
    padding: 0;
}

CodePudding user response:

Try this:

* {
    margin: 0;
    padding: 0;
}
  • Related