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.
Moderator: General Moderators
Code: Select all
$snapped = ceil($original / $snapsize) * $snapsize;