Chris Lad Chris Lad - 1 year ago 62
CSS Question

How to set background size (height & width)?

I'm very new to JavaScript.

My code so far:


What I want to do is have the background image at a set size so lets say:
width: 100%
height: 100%

Answer Source

You want to use background-size: 100%. Ensure that its browser support is compatible with your supported platforms.

     "background-image": "url(BG.jpg)", 
     "background-attachment": "fixed",
     "background-size": "100%"
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download