Joined October 2012
·
Posted to
New(?) way to center elements verticaly.
over 1 year
ago
@passcod :before and :after isn't supported i IE7 either. @idered I think IE7 supports inline-block on elements wich are usually used as inline?
Posted to
New(?) way to center elements verticaly.
over 1 year
ago
Great tip! Doesn't seem to work in IE7 tho..
Achievements
21 Karma
0 Total ProTip Views
Cub
Have at least one original jQuery or Prototype open source repo
Charity
Fork and commit to someone's open source project in need
À bit (in my opinion) cleaner solution might be to print <?php echo ($i++ % 3 === 0) ? "class=last" : ""; ?> Also it's good practice to use triple "=" in this case just to make sure that the comparison is 0 and not NULL or FALSE.