Need help with svg position | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5

Need help with svg position

How to make the svg drawing start from the top? https://code.sololearn.com/WtteL5DPcaRQ/?ref=app

23rd Dec 2018, 7:35 AM
🍇 Alex Tușinean 💜
🍇 Alex Tușinean 💜 - avatar
11 Answers
+ 3
You cannot set svg (or www) element so it have position absolute (with top and left to 0)?
23rd Dec 2018, 9:09 AM
KrOW
KrOW - avatar
+ 5
Almost made it.
23rd Dec 2018, 9:41 AM
🍇 Alex Tușinean 💜
🍇 Alex Tușinean 💜 - avatar
+ 4
Yes , and i want to make it intersect with the text and the buttons
23rd Dec 2018, 8:38 AM
🍇 Alex Tușinean 💜
🍇 Alex Tușinean 💜 - avatar
+ 4
https://code.sololearn.com/WdSoqJZgN8N9/?ref=app ... The buttons stopped working and everything is bad.😂 Forget it. I am gonna go practice something else.
23rd Dec 2018, 9:32 AM
🍇 Alex Tușinean 💜
🍇 Alex Tușinean 💜 - avatar
23rd Dec 2018, 9:33 AM
Gordon
Gordon - avatar
+ 4
LOL the buttons are masked by the SVG There are two cures here: Simple way is to adjust the sequence in HTML codes. The later elements will overlay the earlier elements. Another way is using z-index property.
23rd Dec 2018, 9:34 AM
Gordon
Gordon - avatar
+ 3
I want to make the text fit inside that svg , but idk if it is possible.
23rd Dec 2018, 8:38 AM
🍇 Alex Tușinean 💜
🍇 Alex Tușinean 💜 - avatar
+ 2
I checked the Sololearn CSS course, and yes the absolute positioning is not explained clearly there.
23rd Dec 2018, 9:24 AM
Gordon
Gordon - avatar
+ 1
I didnt understood well... You want move the svg element at top?
23rd Dec 2018, 8:34 AM
KrOW
KrOW - avatar
+ 1
I coded an example, although it's too late. 🤣 https://code.sololearn.com/W4dGFJx8wFW7/?ref=app And why make my ans best? It's KrOW who has helped you.
23rd Dec 2018, 9:45 AM
Gordon
Gordon - avatar
+ 1
Nice
27th Dec 2018, 2:08 AM
Julio Chuvinski
Julio Chuvinski - avatar