{"id":280,"date":"2025-10-15T08:37:23","date_gmt":"2025-10-15T08:37:23","guid":{"rendered":"https:\/\/bimboadeyemi.uk\/blog\/?p=280"},"modified":"2025-10-15T08:37:23","modified_gmt":"2025-10-15T08:37:23","slug":"knowing-css","status":"publish","type":"post","link":"https:\/\/bimboadeyemi.uk\/blog\/knowing-css\/","title":{"rendered":"Knowing CSS"},"content":{"rendered":"\n<p>This week, I learned that CSS isn&#8217;t just about making things look pretty\u2014it&#8217;s about making the web work for everyone.<\/p>\n\n\n\n<p>We started with Eric Meyer&#8217;s CSS reset, which felt like clearing away cobwebs. Browsers have their own ideas about how websites should look, and those ideas don&#8217;t always agree. The reset strips everything back to neutral, giving you a clean canvas. No surprise margins. No mysterious spacing. Just control.<\/p>\n\n\n\n<p>Font choices aren&#8217;t just aesthetic decisions\u2014they&#8217;re accessibility decisions. We learned about font stacks, those ordered lists of typefaces that ensure everyone sees something readable, whether they&#8217;re on a Mac, PC, or phone. System fonts load instantly because they&#8217;re already there, which means faster sites and familiar reading experiences.<\/p>\n\n\n\n<p>Line height, font size, color contrast\u2014every choice affects whether someone can actually read what you&#8217;ve written. I never thought about how a light gray text on white background might look fine to me but be invisible to someone with vision differences.<\/p>\n\n\n\n<p>Every element is a box with content, padding, border, and margin. Understanding this changed how I see web pages. I started mentally deconstructing sites I visit, seeing the invisible boxes that structure everything.<\/p>\n\n\n\n<p>But the real lesson was about breathing room. Padding and margin aren&#8217;t just spacing\u2014they&#8217;re reading comfort. They&#8217;re the difference between cramped, overwhelming text and something you actually want to read.<\/p>\n\n\n\n<p>Hex codes felt cryptic at first\u2014six characters representing millions of colors. But learning about color contrast ratios opened my eyes. That cool, subtle gray I liked for my text? It failed accessibility standards. Beauty means nothing if people can&#8217;t read it.<\/p>\n\n\n\n<p>We also explored CSS custom properties and how they enable dark mode. One person&#8217;s eye strain in light mode is another person&#8217;s struggle in dark mode. Good design adapts.<\/p>\n\n\n\n<p>Writing alt text for images forced me to think about the invisible web\u2014the version experienced by screen readers. &#8220;Creative design concept&#8221; doesn&#8217;t tell someone anything. &#8220;Hand holding a radiant eye with sparkles&#8221; paints a picture. Accessibility isn&#8217;t an afterthought; it&#8217;s good design from the start.<\/p>\n\n\n\n<p>I used to think accessibility was about compliance, about checking boxes. Now I see it&#8217;s about empathy. It&#8217;s designing for the student reading your site at 2am with screen brightness turned down. It&#8217;s the person with dyslexia who needs clear typography. It&#8217;s the colorblind user who can&#8217;t distinguish your red error messages.<\/p>\n\n\n\n<p>CSS gives you power, but with that comes responsibility. Every margin you set, every color you choose, every font you select\u2014these aren&#8217;t just design decisions. They&#8217;re decisions about who gets to use the web comfortably.<\/p>\n\n\n\n<p>That&#8217;s what I learned this week. The web isn&#8217;t just for people like me. And CSS is the tool that helps make it for everyone.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">References<\/h2>\n\n\n\n<p><a href=\"https:\/\/tympanus.net\/codrops\/css_reference\/\">C<\/a>odrops CSS reference<\/p>\n\n\n\n<p><a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/CSS\/Type_selectors\">Type Selectors<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/www.youtube.com\/watch?v=K_EVuLegRZ0&amp;list=PL4-IK0AVhVjMGPUlxEEUuHot89EcPyCY_\">Tags you need in HTML<\/a><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This week, I learned that CSS isn&#8217;t just about making things look pretty\u2014it&#8217;s about making the web work for everyone. We started with Eric Meyer&#8217;s CSS reset, which felt like clearing away cobwebs. Browsers have their own ideas about how websites should look, and those ideas don&#8217;t always agree. The reset strips everything back to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-280","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/bimboadeyemi.uk\/blog\/wp-json\/wp\/v2\/posts\/280","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bimboadeyemi.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bimboadeyemi.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bimboadeyemi.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bimboadeyemi.uk\/blog\/wp-json\/wp\/v2\/comments?post=280"}],"version-history":[{"count":2,"href":"https:\/\/bimboadeyemi.uk\/blog\/wp-json\/wp\/v2\/posts\/280\/revisions"}],"predecessor-version":[{"id":282,"href":"https:\/\/bimboadeyemi.uk\/blog\/wp-json\/wp\/v2\/posts\/280\/revisions\/282"}],"wp:attachment":[{"href":"https:\/\/bimboadeyemi.uk\/blog\/wp-json\/wp\/v2\/media?parent=280"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bimboadeyemi.uk\/blog\/wp-json\/wp\/v2\/categories?post=280"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bimboadeyemi.uk\/blog\/wp-json\/wp\/v2\/tags?post=280"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}