Hi All,
I would like to fit an svg image to fit according to browser window size.
here is my code in JavaScript:
var tag= '
Stretch image according to the screen
5 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Nitesh KejriwalRank #253 · 9.9K reputationPosted Aug 27, 2013, 11:26 PM EDT
var tag= '
Nitesh KejriwalRank #253 · 9.9K reputationPosted Aug 27, 2013, 9:02 PM EDT
darma tejaRank #3,199 · 449 reputationPosted Aug 27, 2013, 11:23 PM EDT
Actually I do not have any css file for this.
I should make changes only in Javascript.
Thanks,
Darma
darma tejaRank #3,199 · 449 reputationPosted Aug 27, 2013, 11:41 PM EDT
It is working perfectly!!
Thanks,
Darma
Nitesh KejriwalRank #253 · 9.9K reputationPosted Aug 27, 2013, 11:50 PM EDT