June 2025
Beginner
817 pages
31h 30m
English
You may have seen CSS files on the web that you thought were pretty large. Especially if you’re actively developing a more extensive website, it can be useful to initially distribute the various style statements across multiple CSS files.
The principle is simple: You use a central stylesheet, which you include in the HTML document as usual via the link element. In Figure 15.9, style.css is the central stylesheet. However, this central stylesheet doesn’t contain any ordinary CSS content, but again only loads the other CSS files (e.g., reset.css, print.css, layout.css, navi.css, and iebrowser. css in the example of the figure) by using the @import rule. At first, this may sound a bit cumbersome, but during ...
Read now
Unlock full access