R
R
RusTaylor2018-10-12 12:25:06
css
RusTaylor, 2018-10-12 12:25:06

How to stretch the block in width?

5bc067d273c0e378421802.jpeg

footer{
    background: #f1f1f1;
    width:100%;
    margin-top:150px;
    height:300px;
    overflow:hidden;
    position:relative;
}

I'm making a footer for a website and ran into a problem that the footer doesn't reach the borders.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
AngReload, 2018-10-12
@RusTaylor

html, body { margin:0; padding: 0 }
or the footer has indents, it's better for you to look in the developer tools.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question