text font bigger css code example Example 1: font size css .class { font-size: 12px; } Example 2: text size in CSS font-size: 2em;