| by Gagandeep Singh | No comments

Understanding em in CSS

This post will be a quick introduction to what exactly is ’em’ in css. If simply explained, em is equal to the font-size of the element to which the em is applied. For example, in the below code the value of em inside mainClass will be 20px, so 0.5em will be 10px. .mainClass{ font-size:20px; padding:0.5em; […]

Read More