Some of the most useful units for web development are listed in the table below. The benefit of using relative units is that with some careful planning you can make it so the size of text or other elements scales relative to everything else on the page. Relative length units are relative to something else, perhaps the size of the parent element's font, or the size of the viewport. The only value that you will commonly use is px (pixels). For example, we don't typically use cm (centimeters) on screen. Most of these units are more useful when used for print, rather than screen output. The following are all absolute length units - they are not relative to anything else, and are generally considered to always be the same size. It's important to know the difference in order to understand how big things will become. There are two types of lengths used in CSS - relative and absolute. The numeric type you will come across most frequently is.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |