+ 11

How to display the coordinate grid in HTML ?

Is there any way to display the coordinate grid in HTML or CSS to help me when I draw using SVG; Is it at all possible?

7th Dec 2018, 6:37 PM
Moree
Moree - avatar
2 ответов
+ 5
Thank you so much for your help. visph
8th Dec 2018, 12:39 AM
Moree
Moree - avatar
+ 3
You can use this one, done with SVG: https://code.sololearn.com/Wsv75Hj7tUH3/?ref=app Not displaying coordinates (harder/longer work to done), only grid lines (ligther: every 10 units, dashed: every 50 units, darker: every 100 units)... but covering the SVG viewport and compatible with use of viewBox / preserveAspectRatio attribute (defaulting to value wich you should delete if you want to change or erase the actual width and height attribute values. Anyway you should be advised to check at least the two links above before playing with viewBox / preserveAspectRatio attributes to understand their behavior) https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/viewBox https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/preserveAspectRatio
7th Dec 2018, 8:51 PM
visph
visph - avatar