What css attribute and value do I use to set image width to whatever the user's window width happens to be?

Progz

Recommended Answers

max-width: 100%;
height: auto;

Jump to Post

All 2 Replies

max-width: 100%;
height: auto;

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.