{"id":470,"date":"2011-03-26T05:41:25","date_gmt":"2011-03-26T11:41:25","guid":{"rendered":"http:\/\/bateru.com\/news\/?p=470"},"modified":"2011-04-03T13:23:28","modified_gmt":"2011-04-03T19:23:28","slug":"css-reference-in-json","status":"publish","type":"post","link":"https:\/\/bateru.com\/news\/2011\/03\/css-reference-in-json\/","title":{"rendered":"CSS reference in JSON"},"content":{"rendered":"<p>Hey everyone,<br \/>\nI just want post a link to a <a href=\"http:\/\/www.json.org\/js.html\">JSON<\/a> file that I made as a <a href=\"http:\/\/www.w3schools.com\/css\/\">CSS<\/a> reference. It&#8217;s slightly invalid JSON because it includes functions but that shouldn&#8217;t be a problem unless you&#8217;re using ajax to transfer the file for some reason. This file was used to make a <a href=\"http:\/\/bateru.com\/news\/2011\/01\/random-css-generator-with-evolution\/\">random css generator<\/a> and worked out quite nicely. <\/p>\n<p><b>File<\/b>: <a href=\"http:\/\/bateru.com\/projects\/random_css\/json\/css.json\">CSS.JSON<\/a><br \/>\n<b>Purpose<\/b>: To provide a JSON lookup for the css properties.<br \/>\n<b>Limitations<\/b>: Using CSS Version 1 and 2.<br \/>\n<b>Example code<\/b><\/p>\n<pre lang='javascript' line=\"1\">\r\n...\r\n        \"white-space\": {\r\n            \"info\": \"Specifies how white-space inside an element is handled\",\r\n            \"cssVersion\": \"1\",\r\n            \"unitType\": [\"normal\", \"pre\", \"nowrap\", \"pre-wrap\", \"pre-line\"]\r\n        },\r\n...\r\n<\/pre>\n<p><iframe src=\"http:\/\/rcm.amazon.com\/e\/cm?t=baterucom-20&#038;o=1&#038;p=8&#038;l=as1&#038;asins=0596802447&#038;ref=tf_til&#038;fc1=000000&#038;IS2=1&#038;lt1=_blank&#038;m=amazon&#038;lc1=0000FF&#038;bc1=000000&#038;bg1=FFFFFF&#038;f=ifr\" style=\"width:120px;height:240px;\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\"><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hey everyone, I just want post a link to a JSON file that I made as a CSS reference. It&#8217;s slightly invalid JSON because it includes functions but that shouldn&#8217;t be a problem unless you&#8217;re using ajax to transfer the file for some reason. This file was used to make a random css generator and &hellip; <a href=\"https:\/\/bateru.com\/news\/2011\/03\/css-reference-in-json\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">CSS reference in JSON<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,10],"tags":[165,60,164,19],"class_list":["post-470","post","type-post","status-publish","format-standard","hentry","category-frontend-tech","category-tutorials","tag-css","tag-files","tag-javascript","tag-random-css-generator"],"_links":{"self":[{"href":"https:\/\/bateru.com\/news\/wp-json\/wp\/v2\/posts\/470","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bateru.com\/news\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bateru.com\/news\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bateru.com\/news\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bateru.com\/news\/wp-json\/wp\/v2\/comments?post=470"}],"version-history":[{"count":5,"href":"https:\/\/bateru.com\/news\/wp-json\/wp\/v2\/posts\/470\/revisions"}],"predecessor-version":[{"id":548,"href":"https:\/\/bateru.com\/news\/wp-json\/wp\/v2\/posts\/470\/revisions\/548"}],"wp:attachment":[{"href":"https:\/\/bateru.com\/news\/wp-json\/wp\/v2\/media?parent=470"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bateru.com\/news\/wp-json\/wp\/v2\/categories?post=470"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bateru.com\/news\/wp-json\/wp\/v2\/tags?post=470"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}