Loading tutorials
color: red; works, and the hex notation from the previous chapter. It covers the two functional color notations, rgb() and hsl(), and how to add transparency to either one.5 min readrgb() and hsl() values, know how selectors and the cascade decide which rule wins, and have a stylesheet linked to a page. It shows how to define a color once and reuse it everywhere. It also covers the keyword currentColor, which lets a property borrow the el5 min readrgb() and hsl() notation, custom properties, and currentColor from the earlier chapters. It covers how contrast is measured, which ratios to meet, and how to build those checks into your color system.6 min readrgb(), and hsl() notation, CSS custom properties, and how currentColor works. It covers two newer tools: the oklch() color function and the color-mix() function. Together they let you build palettes and derived shades from a single color value.6 min readpx dominates real stylesheets, and where px causes acce6 min readem, rem, and % are resolved into pixels, and how to choose between them. It assumes you know CSS selectors and the cascade, the box model (margin, padding, border), and how to link a stylesheet. You should also know that px is the common absolute unit, covered in the 6 min readpx, em, rem, and percentages work, and that you can write a selector and a rule that sets width or min-height. Here you will learn the units that size things relative to the browser window, why 100vh misbehaves on phones, and how the newer small, large, 6 min readvw can become unreadably small. This chapter covers three CSS math functions that let a size grow with the viewport while staying inside limits you choose.6 min readfont-family property: how the browser picks a font from a list, how to build that list, and which mistakes break it. It assumes you know basic HTML, CSS selectors and the cascade, and how to link a stylesheet. Font size, weight, and style come in the next chapter. Loading y6 min readfont-size, font-weight, and font-style. It also covers the font shorthand, which sets them together. It assumes you know basic HTML structure, CSS selectors and the cascade, the box model, and how to link a sty6 min readfont-family with a fallback stack (covered in the previous chapters). Here you will load your own font files, control how the browser shows text while they download, and avoid the layout problems that custom fonts com6 min readline-height, letter-spacing, and word-spacing. It assumes you know CSS selectors and inheritance, and that you have met em and rem units and font-size in earlier chapters. Small changes to these5 min read