Full background using :cover; makes adds horizontal scroll
Posted
by
user1907341
on Stack Overflow
See other posts from Stack Overflow
or by user1907341
Published on 2012-12-16T04:51:38Z
Indexed on
2012/12/16
5:03 UTC
Read the original article
Hit count: 120
I am working on a website which needs a header with full background image & 650 height. At the moment i am using background-size: cover; property with 100% width.
While, it's working it leaves an awkward horizontal scroll of about 50px on right side. Which is lot more prominent in smaller resolutions.
I tried applying background to body instead of header div too. But same thing happens there as well.
You can see a preview here - http://nitingarg.com/projects/tfe/
© Stack Overflow or respective owner