Joined October 2012
·

Emil Nordh

Sweden
·
·

À 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.

@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?

Great tip! Doesn't seem to work in IE7 tho..

Achievements
21 Karma
0 Total ProTip Views
Interests & Skills