How can I put it in the BOTTOM 😱 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How can I put it in the BOTTOM 😱

When i do html using SVG tag the rectangle appear on the top, how can i make it to go to the bottom. Any kinds of help is appreciated. Thanks 😊

23rd May 2022, 9:36 PM
Solaz
Solaz - avatar
2 Answers
+ 1
<!DOCTYPE html> <html> <head> <link rel="stylesheet" href="Css.css"> <meta charset="utf-8"> <title>SVG for rect</title> </head> <body> <svg class="what" width="1000" height="1000" > <rect class="bot" width="69" height="15" fill="orange"> <animate attributeName="fill" from="green" to="red" dur="3s" fill="freeze" repeatCount="3"/> </rect> </svg></body> </html> help me to put it in the BOTTOM
23rd May 2022, 9:40 PM
Solaz
Solaz - avatar
0
In the css class afecting the svg you should use top and left properties yo absolute positioning them
23rd May 2022, 11:52 PM
Victor Pablo Galván Flórez
Victor Pablo Galván Flórez - avatar