The web site: how do we remove the ununderstood fields between the browser blocks and boundaries?



  • What is the optimum method of posting a website with stretched elements (stop, futher and any other) where these elements are connected to the browser window?

    I'll give you a specific example. There should be no space between their stretched edges and the browser.

    Шаблон

    And here's my website hat: as you can see, between the edges of the hat and the window of the browser at my field, though margin The hats are 0 on all sides.

    введите сюда описание изображения

    I made it so:

    header{
        position: realtive;
        min-width: 1000px;
        height: 70px;
        background-color: #3CBAC8;
        margin: 0;
    }
    

    The other sites on my browser, I saw no fields.

    I've heard about a plumbing method, like pseudos, which is used for the wide-ranging website windows, but I'm asking for a solution with minimum tegs and classes.



  • Apparently. <body>as opposed to other facilities such as <header> or simply <div>have innumerable default margins, at least on top and on both sides. Addressing the problem is obvious:

    body{
        margin: 0;
    }
    

Log in to reply
 


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2