Currently, I have a grid snap function in place, however, I am looking to add light grey lines horizontally and vertically on my Designing application. The goal is to achieve a similar aesthetic to Visual Studios' form designing feature.
Utilizing some global variables for pixel spacing, I am focused on getting this accomplished using Javascript. Since the page's dimensions can vary infinitely in both directions, the solution must be adaptable and dynamic.
The progress has been promising so far, but I am uncertain about the best approach to implement this feature.
<hr style="position:absolute;" width="1" size="500" />
<hr style="position:absolute;" width="500" size="1" />