{"id":240,"date":"2025-05-15T01:22:31","date_gmt":"2025-05-15T01:22:31","guid":{"rendered":"https:\/\/www.kwwd.co.uk\/blog\/?p=240"},"modified":"2025-05-15T01:22:31","modified_gmt":"2025-05-15T01:22:31","slug":"basic-css-template","status":"publish","type":"post","link":"https:\/\/www.kwwd.co.uk\/blog\/basic-css-template\/","title":{"rendered":"Basic CSS Template"},"content":{"rendered":"<pre><code class=\"language-css line-numbers\">\r\n\/*\r\n  Basic CSS Reset to help with cross-browser consistency\r\n  Learn more: https:\/\/meyerweb.com\/eric\/tools\/css\/reset\/\r\n*\/\r\nhtml, body, div, span, applet, object, iframe,\r\nh1, h2, h3, h4, h5, h6, p, blockquote, pre,\r\na, abbr, acronym, address, big, cite, code,\r\ndel, dfn, em, img, ins, kbd, q, s, samp,\r\nsmall, strike, strong, sub, sup, tt, var,\r\nb, u, i, center,\r\ndl, dt, dd, ol, ul, li,\r\nfieldset, form, label, legend,\r\ntable, caption, tbody, tfoot, thead, tr, th, td,\r\narticle, aside, canvas, details, embed,\r\nfigure, figcaption, footer, header, hgroup,\r\nmenu, nav, output, ruby, section, summary,\r\ntime, mark, audio, video {\r\n  margin: 0;\r\n  padding: 0;\r\n  border: 0;\r\n  font-size: 100%;\r\n  font: inherit;\r\n  vertical-align: baseline;\r\n}\r\n\/* HTML5 display-role reset for older browsers *\/\r\narticle, aside, details, figcaption, figure,\r\nfooter, header, hgroup, menu, nav, section {\r\n  display: block;\r\n}\r\nbody {\r\n  line-height: 1;\r\n  font-family: sans-serif; \/* A good default sans-serif font *\/\r\n  background-color: #f4f4f4; \/* Light gray background *\/\r\n  color: #333; \/* Dark gray text *\/\r\n}\r\nol, ul {\r\n  list-style: none;\r\n}\r\nblockquote, q {\r\n  quotes: none;\r\n}\r\nblockquote:before, blockquote:after,\r\nq:before, q:after {\r\n  content: '';\r\n  content: none;\r\n}\r\ntable {\r\n  border-collapse: collapse;\r\n  border-spacing: 0;\r\n}\r\n\r\n\/* Basic Styling *\/\r\nbody {\r\n  font-size: 16px;\r\n  line-height: 1.5;\r\n}\r\n\r\nheader {\r\n  background-color: #333;\r\n  color: #fff;\r\n  padding: 1em 0;\r\n}\r\n\r\nnav ul {\r\n  display: flex;\r\n  justify-content: center;\r\n}\r\n\r\nnav ul li {\r\n  margin: 0 1em;\r\n}\r\n\r\nnav a {\r\n  color: #fff;\r\n  text-decoration: none;\r\n}\r\n\r\nmain {\r\n  padding: 20px;\r\n  max-width: 960px; \/* A common maximum width for content *\/\r\n  margin: 0 auto; \/* Center the content *\/\r\n}\r\n\r\nh1, h2, h3 {\r\n  margin-bottom: 0.5em;\r\n  color: #555;\r\n}\r\n\r\nfooter {\r\n  background-color: #333;\r\n  color: #fff;\r\n  text-align: center;\r\n  padding: 1em 0;\r\n  position: fixed; \/* Stick to the bottom *\/\r\n  bottom: 0;\r\n  width: 100%;\r\n}\r\n\r\n\/* You can add more global styles here *\/\r\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\/* Basic CSS Reset to help with cross-browser consistency Learn more: https:\/\/meyerweb.com\/eric\/tools\/css\/reset\/ *\/ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[62,10,61],"class_list":["post-240","post","type-post","status-publish","format-standard","hentry","category-css","tag-boilerplate","tag-css","tag-template"],"_links":{"self":[{"href":"https:\/\/www.kwwd.co.uk\/blog\/wp-json\/wp\/v2\/posts\/240","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kwwd.co.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kwwd.co.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kwwd.co.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kwwd.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=240"}],"version-history":[{"count":0,"href":"https:\/\/www.kwwd.co.uk\/blog\/wp-json\/wp\/v2\/posts\/240\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.kwwd.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=240"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kwwd.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=240"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kwwd.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=240"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}