CodeToFun
Learn Programming Free
Tutorials
Languages
Features
News
About
Sign In
Tutorials
Languages
Features
News
About
Sign In
Back
/
CSS background-size Property
CSS background-size Property — 50%
Try It
Run
Reset
Save
Save to Google Drive
Sync with your Google account
Download HTML
Save to your device
Share
Full
HTML Code
Theme
Copy
background-size: 50%
50%
sets the width. Height stays
auto
, so the ratio is kept.
Scaled image
Lines:
0
| Characters:
0
Live Preview
Auto-refresh on Run