Is it possible to style external svg file with css without modifying the svg file content?
<img src="image/svg/3ds-max.svg">
And is there any better way to display external svg file in html5?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s not possible using an img tag, these are basically similar to bitmaps as far as accessing or modify them is concerned. You could use the
<iframe>tag with its style attribute instead or alternatively just include the svg inline in the file which you can do with html5.