if (!$("#navigation").length) { // Add here CSS rules for the mob version // Example rule: make code blocks' font extra small // for fitting better in the small screens } else { // Optionally, add here rules you want to force for the PC version $("pre.prettyprint").css({fontSize: "150%"}); }