{"id":14269,"date":"2011-09-06T20:31:51","date_gmt":"2011-09-07T03:31:51","guid":{"rendered":"http:\/\/css-tricks.com\/?page_id=14269"},"modified":"2011-09-06T20:31:51","modified_gmt":"2011-09-07T03:31:51","slug":"s","status":"publish","type":"page","link":"https:\/\/css-tricks.com\/almanac\/selectors\/s\/","title":{"rendered":"S"},"content":{"rendered":"","protected":false},"excerpt":{"rendered":"","protected":false},"author":1036,"featured_media":0,"parent":13708,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"page-almanac-group.php","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"sig_custom_text":"","sig_image_type":"featured-image","sig_custom_image":0,"sig_is_disabled":false,"inline_featured_image":false,"c2c_always_allow_admin_comments":false,"footnotes":""},"tags":[],"acf":[],"jetpack-related-posts":[{"id":17426,"url":"https:\/\/css-tricks.com\/snippets\/css\/solarized-theme-for-codemirror-and-prettify\/","url_meta":{"origin":14269,"position":0},"title":"Solarized Theme for CodeMirror and Prettify","date":"July 9, 2012","format":false,"excerpt":"Here's for Google Code Prettify (found at this source). .prettyprint { color: #839496; background-color: #002b36; } .prettyprint .pln { color: inherit; } .prettyprint .str, .prettyprint .lit, .prettyprint .atv { color: #2aa198; } .prettyprint .kwd { color: #268bd2; } .prettyprint .com, .prettyprint .dec { color: #586e75; font-style: italic; } .prettyprint .typ\u2026","rel":"","context":"With 3 comments","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":5088,"url":"https:\/\/css-tricks.com\/snippets\/javascript\/format-currency\/","url_meta":{"origin":14269,"position":1},"title":"Format Currency","date":"December 19, 2009","format":false,"excerpt":"This function will round numbers to two decimal places, and ensure that the returned value has two decimal places. For example 12.006 will return 12.01, .3 will return 0.30, and 5 will return 5.00 function CurrencyFormatted(amount) { var i = parseFloat(amount); if(isNaN(i)) { i = 0.00; } var minus =\u2026","rel":"","context":"In "Article"","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":13947,"url":"https:\/\/css-tricks.com\/almanac\/properties\/s\/","url_meta":{"origin":14269,"position":2},"title":"S","date":"August 31, 2011","format":false,"excerpt":"","rel":"","context":"Similar post","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":14188,"url":"https:\/\/css-tricks.com\/almanac\/selectors\/f\/focus\/","url_meta":{"origin":14269,"position":3},"title":":focus","date":"September 6, 2011","format":false,"excerpt":"The :focus pseudo class in CSS is used for styling an element that is currently targeted by the keyboard, or activated by the mouse. Here is an example: textarea:focus { background: pink; } CodePen Embed Fallback Any element (most commonly\u00a0s and\u00a0