'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.
Subscribe to:
Post Comments (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 ...
-
When you begin to build your website, it's a very clever idea to organize your files and folders efficiently. You should have: A ...
-
It is a very good idea when creating a new webpage to reset all styles for the browser. This ensures that all browsers are starting off on ...
-
When using openpyxl to load workbooks, ensure that your excel file is saved in the same folder as the .py file you are developing. import...
No comments:
Post a Comment