{"id":158,"date":"2006-06-19T22:18:02","date_gmt":"2006-06-20T03:18:02","guid":{"rendered":"http:\/\/mikew.ca\/wp\/?p=158"},"modified":"2025-01-15T00:52:55","modified_gmt":"2025-01-15T00:52:55","slug":"css-rules-lol","status":"publish","type":"post","link":"https:\/\/mikew.ca\/blog\/?p=158","title":{"rendered":"CSS Rules! (LOL)"},"content":{"rendered":"\n<p>Ok, so I have finally figured out how CSS works.<\/p>\n\n\n\n<p>As a test, I bashed the main <a href=\"http:\/\/mikew.ca\">Great Castle Wilson<\/a> site to use CSS for all structure and formatting instead of the old code, which was a bunch of nested tables and embedded text attributes. The new version of the site is quite similar to the old one, with a small number of &#8220;upgrades&#8221; to the appearance, such as rollovers in the nav bar.<\/p>\n\n\n\n<p>What they say about how using CSS reduces the size of the files is true, even for small pages. The old index.html file was 4,068 bytes. The new index.html+style.css files together are only 3,121 bytes.<\/p>\n\n\n\n<p>Anyway, for reference, the old index.html file can be found <s>here<\/s>.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ok, so I have finally figured out how CSS works. As a test, I bashed the main Great Castle Wilson site to use CSS for all structure and formatting instead of the old code, which was a bunch of nested tables and embedded text attributes. The new version of the site is quite similar 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":[9],"tags":[],"class_list":["post-158","post","type-post","status-publish","format-standard","hentry","category-site"],"_links":{"self":[{"href":"https:\/\/mikew.ca\/blog\/index.php?rest_route=\/wp\/v2\/posts\/158","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mikew.ca\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mikew.ca\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mikew.ca\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mikew.ca\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=158"}],"version-history":[{"count":2,"href":"https:\/\/mikew.ca\/blog\/index.php?rest_route=\/wp\/v2\/posts\/158\/revisions"}],"predecessor-version":[{"id":3487,"href":"https:\/\/mikew.ca\/blog\/index.php?rest_route=\/wp\/v2\/posts\/158\/revisions\/3487"}],"wp:attachment":[{"href":"https:\/\/mikew.ca\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=158"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mikew.ca\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=158"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mikew.ca\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=158"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}