{"id":58482,"date":"2023-09-15T12:15:10","date_gmt":"2023-09-15T06:45:10","guid":{"rendered":"https:\/\/www.tothenew.com\/blog\/?p=58482"},"modified":"2023-09-19T16:32:58","modified_gmt":"2023-09-19T11:02:58","slug":"the-complete-css-property-encyclopedia-your-ultimate-reference-part-1","status":"publish","type":"post","link":"https:\/\/www.tothenew.com\/blog\/the-complete-css-property-encyclopedia-your-ultimate-reference-part-1\/","title":{"rendered":"The Complete CSS Property Encyclopedia: Your Ultimate Reference (Part 1)"},"content":{"rendered":"<h2><strong>CSS \u2500 MEASUREMENT UNITS<\/strong><\/h2>\n<p><span style=\"font-weight: 400;\">CSS offers us various measurement units that we can use to define sizes and distances for various properties such as width, height, margins, padding, fonts, and more. Here&#8217;s a list of commonly used CSS measurement units:<\/span><\/p>\n<p><span style=\"font-weight: 400;\"><span style=\"font-weight: 400;\"><strong>\u25cf Pixels (px): <\/strong><\/span><\/span><span style=\"font-weight: 400;\">Pixels specify the size in CSS, and it is most commonly used. 1px represents a single dot on a screen. It&#8217;s a fixed-size unit. It is also not affected by the screen&#8217;s resolution.<\/span><\/p>\n<pre><span style=\"font-weight: 400;\">width: 100px;<\/span><\/pre>\n<p><span style=\"font-weight: 400;\"><span style=\"font-weight: 400;\"><strong>\u25cf Percent (%): <\/strong><\/span><\/span><span style=\"font-weight: 400;\">Percentages are used to create responsive layouts. They are calculated based on their parent container&#8217;s size.<\/span><\/p>\n<pre><span style=\"font-weight: 400;\">width: 50%;<\/span><\/pre>\n<p><strong><strong>\u25cf Em (em): <\/strong><\/strong><span style=\"font-weight: 400;\">The &#8220;em&#8221; unit is relative to the font size of the element. For example, if the font size of the parent element is 16px, then 1em denotes 16px.<\/span><\/p>\n<pre><span style=\"font-weight: 400;\">font-size: 1.2em;<\/span><\/pre>\n<p><strong><strong>\u25cf Rem (rem): <\/strong><\/strong><span style=\"font-weight: 400;\">Rem is the same as\u00a0 &#8220;em,&#8221; but it&#8217;s relative to the root (html) element&#8217;s font size. font-size: 1.2rem;<\/span><\/p>\n<p><strong><strong>\u25cf Viewport Width (vw) and Viewport Height (vh): <\/strong><\/strong><span style=\"font-weight: 400;\">These units are relative to the viewport&#8217;s width and height, respectively. 1vw = 1% of the viewport width, and 1vh = 1% of the viewport height.<\/span><\/p>\n<pre><span style=\"font-weight: 400;\">width: 50vw;<\/span>\r\n\r\n<span style=\"font-weight: 400;\">height: 25vh;<\/span><\/pre>\n<p><strong><strong>\u25cf Centimeters (cm), Millimeters (mm), Inches (in), Points (pt), and Picas (PC): <\/strong><\/strong><span style=\"font-weight: 400;\">These units are physical measurements. They can be used when we need precise control over print styles or, we can say when we want to specify sizes in real-world units.<\/span><\/p>\n<pre><span style=\"font-weight: 400;\">width: 5cm;<\/span><\/pre>\n<p><strong><strong>\u25cf Pixels per Inch (ppi) or Dots per Inch (dpi): <\/strong><\/strong><span style=\"font-weight: 400;\">These units specify the number of pixels or dots per inch on a printed page. They are mostly used for print styles. They are used in the \u2018@media print \u2018context.<\/span><\/p>\n<pre><span style=\"font-weight: 400;\">width: 300dpi;<\/span><\/pre>\n<p><strong><strong>\u25cf Ch: <\/strong><\/strong><span style=\"font-weight: 400;\">The &#8220;ch&#8221; unit represents the width of the zero (0) character in the current font. It is useful for aligning text or when we want to create fixed-width layouts based on character count.<\/span><\/p>\n<pre><span style=\"font-weight: 400;\">width: 20ch;<\/span><\/pre>\n<p><strong><strong>\u25cf Grid-Fraction (fr): <\/strong><\/strong><span style=\"font-weight: 400;\">In order to distribute available space among grid items, we use this. It is used with CSS Grid layouts. For example, if we have two items with 1fr and 2fr, the second item will take twice as much space as the first.<\/span><\/p>\n<pre><span style=\"font-weight: 400;\">grid-template-columns: 1fr 2fr;<\/span><\/pre>\n<p><span style=\"font-weight: 400;\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-58471 size-full\" src=\"\/blog\/wp-ttn-blog\/uploads\/2023\/09\/c1.png\" alt=\"\" width=\"606\" height=\"238\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2023\/09\/c1.png 606w, \/blog\/wp-ttn-blog\/uploads\/2023\/09\/c1-300x118.png 300w\" sizes=\"(max-width: 606px) 100vw, 606px\" \/><\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0<img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-58472 size-full\" src=\"\/blog\/wp-ttn-blog\/uploads\/2023\/09\/c2.png\" alt=\"\" width=\"495\" height=\"537\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2023\/09\/c2.png 495w, \/blog\/wp-ttn-blog\/uploads\/2023\/09\/c2-277x300.png 277w\" sizes=\"(max-width: 495px) 100vw, 495px\" \/>\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-58473 size-large\" src=\"\/blog\/wp-ttn-blog\/uploads\/2023\/09\/c3-1024x199.png\" alt=\"\" width=\"625\" height=\"121\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2023\/09\/c3-1024x199.png 1024w, \/blog\/wp-ttn-blog\/uploads\/2023\/09\/c3-300x58.png 300w, \/blog\/wp-ttn-blog\/uploads\/2023\/09\/c3-768x149.png 768w, \/blog\/wp-ttn-blog\/uploads\/2023\/09\/c3-624x121.png 624w, \/blog\/wp-ttn-blog\/uploads\/2023\/09\/c3.png 1301w\" sizes=\"(max-width: 625px) 100vw, 625px\" \/><\/span><\/p>\n<h2><strong>CSS \u2500 COLORS<\/strong><\/h2>\n<p><span style=\"font-weight: 400;\">In CSS, colors can be defined with the help of a variety of methods, which include named colors, hexadecimal, RGB, RGBA, HSL, and HSLA.\u00a0<\/span><\/p>\n<p><strong>\u25cf Named Colors: <\/strong>CSS provides us with a set of predefined color names that we can use directly.<\/p>\n<pre><span style=\"font-weight: 400;\">color: red;\u00a0<\/span>\r\n\r\n<span style=\"font-weight: 400;\">background-color: yellow;<\/span><\/pre>\n<p><strong>\u25cf Hexadecimal Values: <\/strong>These colors use a 6-digit hexadecimal code. Each pair of digits represents the RGB i.e., red, green, and blue color. For example:<\/p>\n<pre><span style=\"font-weight: 400;\">color: #FF0000; \/* Red *\/<\/span>\r\n\r\n<span style=\"font-weight: 400;\">background-color: #00FF00; \/* Green *\/<\/span><\/pre>\n<p><strong>\u25cf RGB Values: <\/strong>RGB color values consist of three numbers representing the intensity of red, green, and blue. They can range from 0 to 255. For example:<\/p>\n<pre><span style=\"font-weight: 400;\">color: rgb(255, 0, 0); \/* Red *\/<\/span>\r\n\r\n<span style=\"font-weight: 400;\">background-color: rgb(0, 255, 0); \/* Green *\/<\/span><\/pre>\n<p><strong>\u25cf RGBA Values: <\/strong>RGBA color values are the same as RGB. It also includes an additional alpha value that represents the transparency of color. The alpha value ranges from 0 (fully transparent) to 1 (fully opaque). For example:<\/p>\n<pre><span style=\"font-weight: 400;\">color: rgba(255, 0, 0, 0.5); \/* Semi-transparent red *\/<\/span>\r\n\r\n<span style=\"font-weight: 400;\">background-color: rgba(0, 255, 0, 0.75); \/* Semi-transparent green *\/<\/span><\/pre>\n<p><strong><strong>\u25cf HSL Values: <\/strong><\/strong><span style=\"font-weight: 400;\">HSL stands for Hue, Saturation, and Lightness. Hue is represented as an angle in degrees (0 to 360), and saturation and lightness are represented as percentages (0% to 100%). For example:<\/span><\/p>\n<pre><span style=\"font-weight: 400;\">color: hsl(0, 100%, 50%); \/* Red *\/<\/span>\r\n\r\n<span style=\"font-weight: 400;\">background-color: hsl(120, 100%, 50%); \/* Green *\/<\/span><\/pre>\n<p><strong>\u25cf HSLA Values: <\/strong><span style=\"font-weight: 400;\">Same as HSL, HSLA includes an alpha value for transparency. For example:<\/span><\/p>\n<pre><span style=\"font-weight: 400;\">color: hsla(0, 100%, 50%, 0.5); \/* Semi-transparent red *\/<\/span>\r\n\r\n<span style=\"font-weight: 400;\">background-color: hsla(120, 100%, 50%, 0.75); \/* Semi-transparent green *\/<\/span><\/pre>\n<p><span style=\"font-weight: 400;\">We can choose the color representation method that suits our needs and design. Also, we can use CSS functions like <\/span><span style=\"font-weight: 400;\">currentColor<\/span><span style=\"font-weight: 400;\">, <\/span><span style=\"font-weight: 400;\">rgba()<\/span><span style=\"font-weight: 400;\">, <\/span><span style=\"font-weight: 400;\">hsla()<\/span><span style=\"font-weight: 400;\">, and CSS variables, which define and reuse colors throughout our stylesheet.<\/span><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-58474 size-full\" src=\"\/blog\/wp-ttn-blog\/uploads\/2023\/09\/c4.png\" alt=\"\" width=\"644\" height=\"546\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2023\/09\/c4.png 644w, \/blog\/wp-ttn-blog\/uploads\/2023\/09\/c4-300x254.png 300w, \/blog\/wp-ttn-blog\/uploads\/2023\/09\/c4-624x529.png 624w\" sizes=\"(max-width: 644px) 100vw, 644px\" \/><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-58475 size-large\" src=\"\/blog\/wp-ttn-blog\/uploads\/2023\/09\/c5-1024x219.png\" alt=\"\" width=\"625\" height=\"134\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2023\/09\/c5-1024x219.png 1024w, \/blog\/wp-ttn-blog\/uploads\/2023\/09\/c5-300x64.png 300w, \/blog\/wp-ttn-blog\/uploads\/2023\/09\/c5-768x164.png 768w, \/blog\/wp-ttn-blog\/uploads\/2023\/09\/c5-624x134.png 624w, \/blog\/wp-ttn-blog\/uploads\/2023\/09\/c5.png 1304w\" sizes=\"(max-width: 625px) 100vw, 625px\" \/><\/p>\n<h2><strong>CSS \u2500 FONTS<\/strong><\/h2>\n<p><span style=\"font-weight: 400;\">In CSS, we can control the fonts by specifying font families, font sizes, font styles, and font weights.\u00a0<\/span><\/p>\n<p><strong><strong>\u25cf Font Families:<\/strong><\/strong><strong>font-family<\/strong><span style=\"font-weight: 400;\"><strong>:<\/strong> This property sets the font for an element. We can specify a list of font family names, and the browser will use the first available font in the list.<\/span><\/p>\n<pre><span style=\"font-weight: 400;\">font-family: Arial, Helvetica, sans-serif;<\/span><\/pre>\n<p><span style=\"font-weight: 400;\"><strong>\u25cf Generic Font Families:<\/strong> We can also use generic font families as fallbacks. Common generic font families include <\/span><span style=\"font-weight: 400;\">serif<\/span><span style=\"font-weight: 400;\">, <\/span><span style=\"font-weight: 400;\">sans-serif<\/span><span style=\"font-weight: 400;\">, <\/span><span style=\"font-weight: 400;\">monospace<\/span><span style=\"font-weight: 400;\">, <\/span><span style=\"font-weight: 400;\">cursive<\/span><span style=\"font-weight: 400;\">, and <\/span><span style=\"font-weight: 400;\">fantasy<\/span><span style=\"font-weight: 400;\">.<\/span><\/p>\n<pre><span style=\"font-weight: 400;\">font-family: 'Times New Roman', Times, serif;<\/span><\/pre>\n<p><strong>\u25cf Font Size: <\/strong>This property defines the size of the text. We can specify the size in various units like px, em, %, or keywords (e.g., small, medium, large).<\/p>\n<pre><span style=\"font-weight: 400;\">font-size: 16px;<\/span><\/pre>\n<p><strong>\u25cf Font Style: <\/strong>To specify the font style, we use this property. For example, normal, italic, or oblique.<\/p>\n<pre><span style=\"font-weight: 400;\">font-style: italic;<\/span><\/pre>\n<p><strong>\u25cf Font Weight: <\/strong>We can set the weight of the font using values like normal, bold, or numeric values ranging from 100 (thin) to 900 (black).<\/p>\n<pre><span style=\"font-weight: 400;\">font-weight: bold;<\/span><\/pre>\n<p><strong>\u25cf Font Variants and Small-Caps: <\/strong>In order to set text to be displayed in small-caps, we use this property.<\/p>\n<pre><span style=\"font-weight: 400;\">font-variant: small-caps;<\/span><\/pre>\n<p><strong>\u25cf Text Transformations: <\/strong>We can control text capitalization with values like uppercase, lowercase, and capitalize.<\/p>\n<pre><span style=\"font-weight: 400;\">text-transform: uppercase;<\/span><\/pre>\n<p><strong>\u25cf Font Shorthand: <\/strong>We can use the font shorthand property to set multiple font properties in one declaration. Always use the below order: <strong><i>font-style, font-variant, font-weight, font-size\/line-height, and font-family.<\/i><\/strong><\/p>\n<pre><span style=\"font-weight: 400;\">font: italic small-caps bold 16px\/1.5 'Times New Roman', Times, serif;<\/span><\/pre>\n<p><strong>\u25cf Web Fonts: <\/strong>In order to define custom font families, we can use web fonts by including font files in our project.<\/p>\n<pre><span style=\"font-weight: 400;\">@font-face {<\/span>\r\n\r\n<span style=\"font-weight: 400;\">\u00a0\u00a0font-family: 'MyCustomFont';<\/span>\r\n\r\n<span style=\"font-weight: 400;\">\u00a0\u00a0src: url('myfont.woff2') format('woff2');<\/span>\r\n\r\n<span style=\"font-weight: 400;\">}<\/span><\/pre>\n<p><span style=\"font-weight: 400;\">These CSS font properties allow us to customize the appearance and typography of text.<\/span><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-58476 size-large\" src=\"\/blog\/wp-ttn-blog\/uploads\/2023\/09\/c6-1024x232.png\" alt=\"\" width=\"625\" height=\"142\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2023\/09\/c6-1024x232.png 1024w, \/blog\/wp-ttn-blog\/uploads\/2023\/09\/c6-300x68.png 300w, \/blog\/wp-ttn-blog\/uploads\/2023\/09\/c6-768x174.png 768w, \/blog\/wp-ttn-blog\/uploads\/2023\/09\/c6-624x141.png 624w, \/blog\/wp-ttn-blog\/uploads\/2023\/09\/c6.png 1132w\" sizes=\"(max-width: 625px) 100vw, 625px\" \/><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-58477 size-full\" src=\"\/blog\/wp-ttn-blog\/uploads\/2023\/09\/c7.png\" alt=\"\" width=\"772\" height=\"575\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2023\/09\/c7.png 772w, \/blog\/wp-ttn-blog\/uploads\/2023\/09\/c7-300x223.png 300w, \/blog\/wp-ttn-blog\/uploads\/2023\/09\/c7-768x572.png 768w, \/blog\/wp-ttn-blog\/uploads\/2023\/09\/c7-624x465.png 624w\" sizes=\"(max-width: 772px) 100vw, 772px\" \/><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-58478 size-large\" src=\"\/blog\/wp-ttn-blog\/uploads\/2023\/09\/c8-1024x317.png\" alt=\"\" width=\"625\" height=\"193\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2023\/09\/c8-1024x317.png 1024w, \/blog\/wp-ttn-blog\/uploads\/2023\/09\/c8-300x93.png 300w, \/blog\/wp-ttn-blog\/uploads\/2023\/09\/c8-768x238.png 768w, \/blog\/wp-ttn-blog\/uploads\/2023\/09\/c8-624x193.png 624w, \/blog\/wp-ttn-blog\/uploads\/2023\/09\/c8.png 1296w\" sizes=\"(max-width: 625px) 100vw, 625px\" \/><\/p>\n<h2><strong>CSS \u2500 TEXT\u00a0<\/strong><\/h2>\n<p><span style=\"font-weight: 400;\">In order to style text content, we can use this. It provides a variety of ways to use text-related properties. Here are some common CSS text properties and how to use them:<\/span><\/p>\n<p><strong>\u25cf Text Color (color):<\/strong><span style=\"font-weight: 400;\">The color property sets the color of the text.<\/span><\/p>\n<pre><span style=\"font-weight: 400;\">color: #FF0000; \/* Red text color *\/<\/span><\/pre>\n<p><strong>\u25cf Text Alignment (text-align): <\/strong>This property controls the horizontal alignment of text.<\/p>\n<pre><span style=\"font-weight: 400;\">text-align: center; \/* Center-align text *\/<\/span><\/pre>\n<p><strong>\u25cf Text Decoration (text-decoration): <\/strong>This property is used to add decorative styles to text, such as underlines and overlines.<\/p>\n<pre><span style=\"font-weight: 400;\">text-decoration: underline;\u00a0<\/span><\/pre>\n<p><strong>\u25cf Text Transformation (text-transform): <\/strong>This property allows us to control the capitalization of text. To make uppercase, lowercase, or capitalized, we can use this property.<\/p>\n<pre><span style=\"font-weight: 400;\">text-transform: uppercase;\u00a0<\/span><\/pre>\n<p><strong>\u25cf Line Height (line-height): <\/strong>This property defines the spacing between lines of text.<\/p>\n<pre><span style=\"font-weight: 400;\">line-height: 1.5;\u00a0<\/span><\/pre>\n<p><strong>\u25cf Letter Spacing (letter-spacing): <\/strong>This property adjusts the space between individual characters in text.<\/p>\n<pre><span style=\"font-weight: 400;\">letter-spacing: 2px; <\/span><\/pre>\n<p><strong>\u25cf Word Spacing (word-spacing): <\/strong>This property adjusts the space between words in text.<\/p>\n<pre><span style=\"font-weight: 400;\">word-spacing: 5px;\u00a0<\/span><\/pre>\n<p><strong>\u25cf Text Shadow (text-shadow): <\/strong>This property adds a shadow effect to text. It can also take multiple values to define the shadow&#8217;s color, horizontal and vertical offsets, and blur radius.<\/p>\n<pre><span style=\"font-weight: 400;\">text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);\u00a0<\/span><\/pre>\n<p><strong>\u25cf Text Overflow (text-overflow): <\/strong>This property controls how text that overflows its container is displayed. Common values include ellipsis (&#8230;) and clip.<\/p>\n<pre><span style=\"font-weight: 400;\">text-overflow: ellipsis;\u00a0<\/span><\/pre>\n<p><strong>\u25cf White Space (white space): <\/strong>This property controls how white space within text is handled. It can also be used in order to prevent line breaks or collapse consecutive white spaces.<\/p>\n<pre><span style=\"font-weight: 400;\">white-space: nowrap;\u00a0<\/span><\/pre>\n<p><span style=\"font-weight: 400;\">These CSS text properties give us control over the appearance and layout of text content on our web pages, helping us to create visually appealing and readable text elements.<\/span><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-58479 size-large\" src=\"\/blog\/wp-ttn-blog\/uploads\/2023\/09\/c9-1024x238.png\" alt=\"\" width=\"625\" height=\"145\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2023\/09\/c9-1024x238.png 1024w, \/blog\/wp-ttn-blog\/uploads\/2023\/09\/c9-300x70.png 300w, \/blog\/wp-ttn-blog\/uploads\/2023\/09\/c9-768x178.png 768w, \/blog\/wp-ttn-blog\/uploads\/2023\/09\/c9-624x145.png 624w, \/blog\/wp-ttn-blog\/uploads\/2023\/09\/c9.png 1146w\" sizes=\"(max-width: 625px) 100vw, 625px\" \/><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-58480 size-full\" src=\"\/blog\/wp-ttn-blog\/uploads\/2023\/09\/c10.png\" alt=\"\" width=\"894\" height=\"574\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2023\/09\/c10.png 894w, \/blog\/wp-ttn-blog\/uploads\/2023\/09\/c10-300x193.png 300w, \/blog\/wp-ttn-blog\/uploads\/2023\/09\/c10-768x493.png 768w, \/blog\/wp-ttn-blog\/uploads\/2023\/09\/c10-624x401.png 624w\" sizes=\"(max-width: 894px) 100vw, 894px\" \/><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-58481 size-large\" src=\"\/blog\/wp-ttn-blog\/uploads\/2023\/09\/c11-1024x374.png\" alt=\"\" width=\"625\" height=\"228\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2023\/09\/c11-1024x374.png 1024w, \/blog\/wp-ttn-blog\/uploads\/2023\/09\/c11-300x110.png 300w, \/blog\/wp-ttn-blog\/uploads\/2023\/09\/c11-768x281.png 768w, \/blog\/wp-ttn-blog\/uploads\/2023\/09\/c11-624x228.png 624w, \/blog\/wp-ttn-blog\/uploads\/2023\/09\/c11.png 1303w\" sizes=\"(max-width: 625px) 100vw, 625px\" \/><\/p>\n<h4><strong>CONCLUSION:<\/strong><\/h4>\n<p><span style=\"font-weight: 400;\">In conclusion, CSS provides a wide range of tools and properties for styling and formatting web content.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Measurement Units: CSS offers various measurement units for defining sizes and distances, including pixels (px), percentages (%), ems (em), rems (rem), viewport units (vw and vh), physical units (cm, mm, in, pt, pc), and more. These units allow for flexible and responsive web design.<\/span><\/p>\n<p><span style=\"font-weight: 400;\"><strong>Colors<\/strong>: CSS allows us to specify colors in multiple ways, such as named colors, hexadecimal values, RGB\/RGBA values, HSL\/HSLA values, and more.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\"><strong>Fonts<\/strong>: CSS provides properties for controlling font families, sizes, styles, weights, variants, and text transformations.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\"><strong>Text<\/strong>: CSS text properties enable us to style text content with properties like color, alignment, decoration (e.g., underline), transformation (e.g., uppercase), line height, letter spacing, word spacing, text shadow, text overflow, and white space handling. <\/span><\/p>\n<div class=\"ap-custom-wrapper\"><\/div><!--ap-custom-wrapper-->","protected":false},"excerpt":{"rendered":"<p>CSS \u2500 MEASUREMENT UNITS CSS offers us various measurement units that we can use to define sizes and distances for various properties such as width, height, margins, padding, fonts, and more. Here&#8217;s a list of commonly used CSS measurement units: \u25cf Pixels (px): Pixels specify the size in CSS, and it is most commonly used. [&hellip;]<\/p>\n","protected":false},"author":1505,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":23},"categories":[3602,3429,1994,4488],"tags":[5445,245,5443,5447,5446,5444],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/58482"}],"collection":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/users\/1505"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/comments?post=58482"}],"version-history":[{"count":4,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/58482\/revisions"}],"predecessor-version":[{"id":58577,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/58482\/revisions\/58577"}],"wp:attachment":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/media?parent=58482"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/categories?post=58482"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/tags?post=58482"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}