css - Background-Image size not working in all browsers -


the weirdest thing happened, had problem fixed footer , accidently left %sign after contain in code. take look. site usahvacsupply.com

html, body{ overflow:auto; margin: auto; background-image:url('/images/testing1/bg2.jpg'); background-repeat: no-repeat;  background-position:top center; -moz-background-size:100% 100%; -webkit-background-size:100% 100%; background-size:contain%; top: 0; left: 0; } 

without % sign after contain throws off. % satisfies firefox though. know fix browsers? ie % helps throws off top level navigation tabs. in chrome out of wack. i'm pretty baffled here appreciated.

well, have different background-position rules different prefixes.

if you'd use 'contain' value, try removing % , follow suit other rules.

-moz-background-size: contain; -webkit-background-size: contain; background-size: contain; 

Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -