100% DIV container very edge ?! HTML CSS

I want a Div container sat wide to 100%, but it is always left and right a small edge ..

Now I have my margin day, the Container indeed get to the edge of the far left, but right is still a gap, the problem is that the margin-right tag is not working ...

I've already tried the wide not at 100% but 102 or something to put, then the gap is smaller, but very it does not go well away, because, for example 103% is already much too broad .. and when zooming the page the gap is still very much visible ..

So I just want to 100% width without gaps at the edge

Does somebody has any idea?

The best answer

The container div sprint 100% wide, but has the body, depending on the browser, even a certain margin and padding. If you insert the following code in your style sheet, the border should be gone, then make sure you also make sure that your website is identical in all browsers:

  body {margin: 0; padding: 0;}

Post the code, then you can also help ^^.

A Div Container always occupies 100% of the available width, which must not be specially set.

Use a CSS reset then the edges should be gone.

Date: 2019-01-19 Views: 0

Related articles

  • div tag in table (html / css) 2014-12-03

    Hey I have a problem, and although I would like a text write picture next to a. However, the picture is described in css. The scenario in the actual index is only , I get it not this attribute in a table to finally both objects to place (text and ima

  • HTML / CSS: Div container superimposed, but the left and right to move freely 2013-10-20

    Hello, I am programming currently a website and am facing a problem. And although I would grab two div container superimposed, so I can make div1 semitransparent and comes in in div2 the text. Have taken for this code: parent {Position: relative; } c

  • html div container align right 2013-04-20

    Hello, somehow it does not work the way I imagine it ... I have the body, the max. given width of 1000px. Now I would like as much as possible to align the navigation bar WITHIN this 1000px right, but unfortunately the container is always left. I loo

  • Help with CSS! Align Hinged Div container bottom right corner? 2012-05-29

    Hi folks, I have the following problem: I have a transparent (red in the picture) DIV container with 100% and I have two more Div container that I want to align in the corner at the bottom right. When it clicks on the image in the first DIV container

  • CSS Help I want a DIV container next to an existing DIV container set, however the 2nd DIV is conatiner in the middle just as centered? 2012-08-31

    --answer-- You can put in the first the second DIV container. The first DIV container you give a position: relative and the second shift position-absolute, and can keep having left the second container. See Example: https://fiddle.jshell.net/mk5fcmvb

  • DIV container can flow around from other DIV container with Opacity / SlideShow? 2012-06-04

    Hey, I'm just going to create their own page and now comes to the problem that I have inserted an image in a DIV container and to flow around this DIV container or this picture of my other containers. It should look like this, that the image on the p

  • How do I get a page footer in HTML / CSS go? 2015-01-26

    I'm writing my site, and I want to have all below especially at the edge of a block, in which the imprint is etc. without me the space with must fill. Is there CSS commands that can do this? --answer-- So the search for HTML CSS Footer would sufficie

  • HTML / CSS: Force Full width surrounding Divisions 2012-02-08

    Actually ne simple thing. but Come degree not on it. Therefore here times nachfrag. Here rst time the markup: <section id="example"> <!-- example widht 100% --> <div class="col-l"><!-- width > auto --></di

  • HTML / CSS header? 2012-05-26

    I'd like to do something like this: http://euw.leagueoflegends.com/de/ . So I have also something like ne überschrieft (the League of Legends where you see) and then just below the area with the various div container. Can anyone explain how I get the



Copyright (C) 2019 m3tch.com, All Rights Reserved.

M3tch all rights reserved.

processed in 0.662 (s). 10 q(s)