'em' is a relative measurement in CSS - relative, literally, to the px size of a letter 'm' in your text. This makes it a useful metric for sizing and resizing images for different situations, and still maintaining their proportion relative to the rest of your webpage.
There is also something called Root em - 'rem' which is useful for responsive websites. It asks 'what was the original size of 'em' in order that it can correctly proportion the website.
However, a good rule-of-thumb is to use ordinary pixels (px) as a measurement for various elements on your webpage - at least starting off.
Showing posts with label em. Show all posts
Showing posts with label em. Show all posts
Subscribe to:
Posts (Atom)
Web Development: Organizing Files and Folders
When you begin to build your website, it's a very clever idea to organize your files and folders efficiently. You should have: A ...
-
Some words are reserved in JavaScript and cannot be used as variable names. Some common examples are: case catch for let private th...
-
Did you know you can list your tables as aliases in SQL? Say you have a table called "quiz" with unique user_id's. You cou...
-
Continuing our journey through Automate the Boring Stuff with Python's excel lessons, we came across the get_column_letter and column_in...