{"id":14226,"date":"2011-09-06T20:18:34","date_gmt":"2011-09-07T03:18:34","guid":{"rendered":"http:\/\/css-tricks.com\/?page_id=14226"},"modified":"2011-09-06T20:18:34","modified_gmt":"2011-09-07T03:18:34","slug":"m","status":"publish","type":"page","link":"https:\/\/css-tricks.com\/almanac\/selectors\/m\/","title":{"rendered":"M"},"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":13935,"url":"https:\/\/css-tricks.com\/almanac\/properties\/m\/","url_meta":{"origin":14226,"position":0},"title":"M","date":"August 31, 2011","format":false,"excerpt":"","rel":"","context":"Similar post","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":9742,"url":"https:\/\/css-tricks.com\/snippets\/jquery\/make-jquery-contains-case-insensitive\/","url_meta":{"origin":14226,"position":1},"title":"Make jQuery :contains Case-Insensitive","date":"June 14, 2011","format":false,"excerpt":"\/\/ NEW selector jQuery.expr[':'].Contains = function(a, i, m) { return jQuery(a).text().toUpperCase() .indexOf(m[3].toUpperCase()) >= 0; }; \/\/ OVERWRITES old selecor jQuery.expr[':'].contains = function(a, i, m) { return jQuery(a).text().toUpperCase() .indexOf(m[3].toUpperCase()) >= 0; }; Update to work for jQuery 1.8 $.expr[\":\"].contains = $.expr.createPseudo(function(arg) { return function( elem ) { return $(elem).text().toUpperCase().indexOf(arg.toUpperCase()) >= 0;\u2026","rel":"","context":"With 23 comments","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3951,"url":"https:\/\/css-tricks.com\/snippets\/php\/adjust-server-time\/","url_meta":{"origin":14226,"position":2},"title":"Adjust Server Time","date":"September 9, 2009","format":false,"excerpt":"Sometimes the time set on your server isn't accurate to what your local time is. If you can't change it, you can adjust it yourself. $today = date('Y-m-d-G'); $today = strftime(\"%Y-%m-%d-%H\", strtotime(\"$today -5 hour\")); If your server thought it was 12 midnight, but it was really 7 pm, this will\u2026","rel":"","context":"In "Article"","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":243593,"url":"https:\/\/css-tricks.com\/almanac\/properties\/o\/offset-distance\/","url_meta":{"origin":14226,"position":3},"title":"offset-distance","date":"July 22, 2016","format":false,"excerpt":"This property began life as motion-offset. This, and all other related motion-* properties, are being renamed offset-* in the spec. We're changing the names here in the almanac. If you want to use it right now, probably best to use both syntaxes. The motion-offset property in CSS says: how far\u2026","rel":"","context":"Similar post","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":191783,"url":"https:\/\/css-tricks.com\/snippets\/sass\/deep-getset-maps\/","url_meta":{"origin":14226,"position":4},"title":"Deep Get\/Set in Maps","date":"December 29, 2014","format":false,"excerpt":"When working on complex Sass architectures, it is not uncommon to use Sass maps to maintain configuration and options. From time to time, you'll see maps within maps (possibly on several levels) like this one from o-grid: $o-grid-default-config: ( columns: 12, gutter: 10px, min-width: 240px, max-width: 1330px, layouts: ( S:\u2026","rel":"","context":"With 11 comments","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":207270,"url":"https:\/\/css-tricks.com\/snippets\/html\/start-a-web-server-with-one-terminal-command-on-os-x\/","url_meta":{"origin":14226,"position":5},"title":"Start a Web Server With One Terminal Command on OS X","date":"August 27, 2015","format":false,"excerpt":"I've searched for this three times this week, so I figured I'd better make sure I have a copy of it. Python 2: python -m SimpleHTTPServer 8000 Navigate to the project directory in the terminal and do that command. Then http:\/\/localhost:8000 will server up that directory (as in, it's `index.html`\u2026","rel":"","context":"In \"php\"","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/pages\/14226"}],"collection":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/users\/1036"}],"replies":[{"embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/comments?post=14226"}],"version-history":[{"count":1,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/pages\/14226\/revisions"}],"predecessor-version":[{"id":14227,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/pages\/14226\/revisions\/14227"}],"up":[{"embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/pages\/13708"}],"wp:attachment":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/media?parent=14226"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/tags?post=14226"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}