-
Notifications
You must be signed in to change notification settings - Fork 209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resizing the countdown? #20
Comments
This is what I did. First add an extra pixel to the width in the psd (left or right). The width should now be 68px. Now you can divide evenly by 2 (45px & 34px). Pass the width and height options such as: $('.digits').countdown({ and in CSS you need to make sure to set the background to 100%. .cntDigit { Hope this is useful for someone in the future. |
This is superb! I think others could benefit from this. I was just getting fed up with this issue for last two days. Thanks a lot ! |
This seems to work easier ... Got the idea from here: https://stackoverflow.com/questions/17333254/scale-the-contents-of-a-div-by-a-percentage
|
I have this working well right now on a bootstrap-based site. The digits are a little big for what I want though and was wondering if there was an easy way to scale this? At first glance it didn't look possible since the sprite was a fixed size, but I'm probably overlooking something obvious.
Thanks!
The text was updated successfully, but these errors were encountered: