Permalink
Browse files

fixes #8 for when line-height is not default. Somehow I'd never teste…

…d custom line-heights before. Still, IE only allows precision to 2 decimal places on a percentage line-height so it's not always perfect, particularly above 50px.
  • Loading branch information...
1 parent 91ff2cc commit 81b741a13f84b87bbabafa26cc76267f6f7f4689 @heygrady committed Jun 8, 2012
Showing with 6 additions and 3 deletions.
  1. +4 −3 _jquery.textshadow.scss
  2. +2 −0 jquery.textshadow.css
View
@@ -13,10 +13,12 @@
position: absolute;
z-index: 0;
+ line-height: 110.74235%; // fixes #9
+
// default positioning
left: 0;
top: 0;
- zoom: 1; // fixes IE7 when doctype is transitional
+ zoom: 1; // fixes #8 in IE7 and below
// turn off shadow
text-shadow: none;
@@ -79,8 +81,7 @@
// remove the unit from the radius
@if unit($blur-radius) == px {
$blur-radius: $blur-radius / 1px;
- }
-
+ }
// for the jquery text-shadow plugin
.ui-text-shadow-copy-#{$i} {
View
@@ -9,6 +9,8 @@
position: absolute;
z-index: 0;
+ line-height: 110.74235%; /* fixes #9 */
+
/* default positioning */
left: 0;
top: 0;

0 comments on commit 81b741a

Please sign in to comment.