Height snap to grid.
Posted: Wed Apr 18, 2007 5:48 pm
How could I, with jQuery, have the height of a div snap to a grid of 325 when ever resized? Always rounding up never down.
For example:
Let say the height of the div is 300px round it up to 325px. Another instance: Let's say the div is 326px, round it up with jquery to 650px.
I hope you get it. I'm just lost on where to start...
Please help me wit this one.
For example:
Let say the height of the div is 300px round it up to 325px. Another instance: Let's say the div is 326px, round it up with jquery to 650px.
I hope you get it. I'm just lost on where to start...
Please help me wit this one.