I have a grid snap implemented, but I want to make light grey lines show up both horizontally and vertically. My reasoning for this is that I am making a Designing application which has a similar look and feel to Visual Studios' form designing aspect.
I have some globals so that way i know the pixel spacing. I just want to get it working with Javascript. The page can go infinitely in the X and Y directions, so i cannot have a static length. It needs to be dynamic.
It is coming along so far, but was unsure if there is a current way to implement this.
<hr style ="position:absolute;" width = "1" size = "500" />
<hr style ="position:absolute;" width = "500" size = "1" />
Can you implement a
for()
loop which would create a finite number (determined by window width, or whatever you want) of rules, that creates a new horizontal-rule element every so many pixels. You can use DHTML to specify the style characteristics of each horizontal-rule.By the way, if your grids don't need to move try position:fixed.
Hope this helps!