Notes for CSS - Overview - Condensed By Scott Granneman & Jans Carton Find the presentation at http://www.granneman.com/presentations/ ## Slide 2 https://granneman.com/downloads/web-dev/CSS-Overview-Condensed.pdf https://granneman.com/downloads/web-dev/CSS-Overview-Condensed.txt ## Slide 3 https://www.granneman.com/presentations/all-presentations ## Slide 4 Granneman, R. Scott. “Home”. Scott Granneman, http://www.granneman.com. ## Slide 5 Bernhardt, Gary [@garybernhardt]. Twitter, 10 Nov 2015, http://twitter.com/garybernhardt/status/664149582046040064. Web. 13 Dec 2015. ## Slide 7 stormbrew. Comment on “Centering in CSS (web.dev)”. Hacker News, 18 Dec 2020, https://news.ycombinator.com/item?id=25464960. Web. 18 Dec 2020. ## Slide 9 Notario, Elaina. “Tailwind and the Femininity of CSS”. thoughtbot, 15 Dec 2021, https://thoughtbot.com/blog/tailwind-and-the-femininity-of-css. Web. 12 Nov 2023. Notario, Elaina [@elainanatario]. “@elaina.bsky.social”. Xitter, https://twitter.com/elainanatario. Web. 12 Nov 2023. Fair use. Modified by converting to the WebP format. ## Slide 10 Keith, Jeremy. “CSS”. Adactio, 18 July 2017, https://adactio.com/journal/12571. Web. 12 Nov 2023. Posselt, Norman. “File:Jeremy Keith in 2019.jpg”. Wikipedia, The Free Encyclopedia, 11 Nov 2021, https://en.wikipedia.org/wiki/File:Jeremy_Keith_in_2019.jpg. Web. 12 Nov 2023. Licensed CC BY-SA 4.0: https://creativecommons.org/licenses/by-sa/4.0/. Modified by converting to the WebP format. ## Slide 11 maigret. [Comment on Hacker News post “Knowing CSS is mastery to front end development”]. Hacker News, 2 Mar. 2025, https://news.ycombinator.com/item?id=43228246. Web. 3 Mar. 2025. ## Slide 12 Suzanne, Miriam Eric [@TerribleMia]. “CSS has been *carefully* & *systematically* designed to solve a set of problems so complex no other language even tries. There are no comparisons to make. ¶ Meanwhile, the basics *look* so declarative & clear that people don't even think of it as "programming".” Twitter, 4 Dec 2020, https://twitter.com/TerribleMia/status/1334918310912135170. Web. 5 Dec 2020. ## Slide 13 Sophie [@sophie@social.lol]. “If you think CSS is some kind of "problem" that needs solving with frameworks, perhaps first consider that maybe the problem is that you don't know how to use it”. *Mastodon*. social.lol, 12 Nov 2023, https://social.lol/@sophie/111397855913360709. Web. 12 Nov 2023. ## Slide 14 Riviere, Alex [@fimion@notacult.social]. “I saw someone else say this, and I don't disagree: CSS is the only language that gets blamed when the author is bad.”. Mastodon. notacult.social, 8 Dec 2023, https://notacult.social/@fimion/111548164693889592. Web. 10 Dec 2023. Riviere, Alex [@fimion@notacult.social]. “Alex Riviere [@fimion@notacult.social]”. Mastodon. notacult.social, 8 Dec 2023, https://notacult.social/@fimion. Web. 10 Dec 2023. Fair use. Modified by converting to the WebP format. ## Slide 16 Wikipedia contributors. “CSS”. Wikipedia, The Free Encyclopedia, 23 Sep. 2022, https://en.wikipedia.org/wiki/CSS. Web. 3 Oct. 2022. ## Slide 17 Wikipedia contributors. “CSS”. Wikipedia, The Free Encyclopedia, 23 Sep. 2022, https://en.wikipedia.org/wiki/CSS. Web. 3 Oct. 2022. ## Slide 18 Wikipedia contributors. “CSS”. Wikipedia, The Free Encyclopedia, 23 Sep. 2022, https://en.wikipedia.org/wiki/CSS. Web. 3 Oct. 2022. ## Slide 19 Bos, Bert. “CSS current work & how to participate”. CSS Specifications, W3C, 17 Sep 2022, https://www.w3.org/Style/CSS/current-work. Web. 2 Oct 2022. ## Slide 20 Bos, Bert. “CSS current work & how to participate”. CSS Specifications, W3C, 17 Sep 2022, https://www.w3.org/Style/CSS/current-work. Web. 2 Oct 2022. ## Slide 21 Deveria, Alexis [@Fyrd]. “CSS Grid Layout”. Can I use…, 18 Oct 2017, http://caniuse.com/#search=grid. Web. 18 Oct 2017. Still CR as of 2 Oct 2022 ## Slide 23 Q-Success. “Usage statistics of site elements for websites”. W3Techs - World Wide Web Technology Surveys, 4 Oct 2023, https://w3techs.com/technologies/overview/site_element. Web. 4 Oct 2023. 96.4% in Oct. 2022 95.5% in Sep. 2020 ## Slide 24 Some HTML elements are conveniences for avoiding writing CSS (e.g., , , ) or for structure (
& ) Some CSS inserts content (e.g., ::before & ::after) or modifies behavior (e.g., animate & transition) Some JavaScript modifies HTML & CSS to change meaning or presentation, not for behavior Wikipedia contributors. “Separation of concerns”. Wikipedia, The Free Encyclopedia, 20 Mar. 2024, https://en.wikipedia.org/wiki/Separation_of_concerns. Web. 15 Apr. 2024. ## Slide 25 WebSanity. “HTML: font element”. CodePen, 2 Oct 2022, https://codepen.io/websanity/pen/wvzvzj?editors=1000. Web. 02 Oct 2022. Lovecraft, H.P. “At the Mountains of Madness”. The H.P. Lovecraft Archive, 20 Aug 2009, https://www.hplovecraft.com/writings/texts/fiction/mm.aspx. Web. 2 Oct 2022. ## Slide 30 Credit: Crying at the Discoteque by Fhernando (http://fhernando.bandpage.com/). Fhernando. “Crying at the Discoteque”. Free Music Archive, 31 July 2012, https://freemusicarchive.org/music/Fhernando/none_given_1383/08__Fhernando__Crying_At_The_Discoteque__Last_Days_Of_Disco__FrostWirecom_FrostClickcom_Creative_Common/. Web. 26 Sep 2022. Licensed CC BY-NC-SA 3.0: https://creativecommons.org/licenses/by-nc-sa/3.0/. Modified by clipping down to 28.06 seconds. ## Slide 37 You can use other names, but css or styles are most common ## Slide 38 The file can have any name, like search.css or foobar.css; it’s just that main.css is among the most common & is one we’ll use in my courses ## Slide 48 WebSanity. “Integrating CSS - embedded styles”. CodePen, 7 July 2020, https://codepen.io/websanity/pen/aQPXrX?editors=1000. Web. 7 July 2020. ## Slide 50 So why use embedded styles? Resource inlining: embedding reduces outbound requests; other examples include embedding JavaScript via