Why does my background not extend beyond my content?

I can’t make the background stretch for content. The strange thing is, it works with Internet Explorer, but not with Firefox.

I hope you just have to give you a link, since I don’t know where the problem is in the code, it would not make sense to publish all the code.

http://www.yiip.de/arbeit/testlayout/standard_template.html

+3
source share
3 answers

try adding the following clearfix style to your wrappers

.clearfix:after {
    content:"\0020";
    display:block;
    height:0;
    clear:both;
    visibility:hidden;
    overflow:hidden;
}
.clearfix {display:block;}
+2
source

You can also add overflow:hidden;in #shadow. This will clear the floats without putting extra markup in your html.

+3
source

3 divs div . -

<br clear='both' />

div ( div).

-1
source

Source: https://habr.com/ru/post/1710762/


All Articles