Improved styling code for tablets