SyntaxFix
Write A Post
Hire A Developer
Questions
If it's a background image, use background-size:contain.
Example css:
#your-div { background: url('image.jpg') no-repeat; background-size:contain; }