SVG | SoloLearn: Learn to code for FREE!

+1

SVG

Does anyone know why the second rectangle is not shown? <svg width="2500" height="2500"> <rect x="100" y="200" width="50" height="50" fill="orange" /> <rect x="150" y="200" width="50" heigth="50" fill="black" /> <rect x="200" y="200" width="50" height="50" fill="green" /> <rect x="250" y="200" width="50" height="50" fill="blue" /> </svg> i see no difference in those lines Thanks ;-)

5/21/2019 9:12:51 PM

Leonardo

3 Answers

New Answer

+2

First code heigth = "50" Second code height = "50"

+1

It's time to rest ☺

0

I jut typed the whole of the black rectangle new and now it works. I have no idea why. or does anyone see a difference? <svg width="2500" height="2500"> <rect x="100" y="200" width="50" height="50" fill="orange" /> <rect x="150" y="200" width="50" height="50" fill="black" /> <rect x="200" y="200" width="50" height="50" fill="green" /> <rect x="250" y="200" width="50" height="50" fill="blue" /> <rect x="300" y="200" width="50" height="50" fill="yellow" /> </svg>