{"id":132,"date":"2015-12-01T16:27:00","date_gmt":"2015-12-02T00:27:00","guid":{"rendered":"http:\/\/jasonflaherty.com\/blog\/?p=132"},"modified":"2015-11-30T16:37:27","modified_gmt":"2015-12-01T00:37:27","slug":"single-list-with-multiple-columns-ala-css3","status":"publish","type":"post","link":"https:\/\/jasonflaherty.com\/blog\/2015\/12\/01\/single-list-with-multiple-columns-ala-css3\/","title":{"rendered":"Single List with Multiple Columns ala CSS3"},"content":{"rendered":"<p>Long lists need to be displayed differently on different devices generally. CSS3 can ease your pain by dividing these up for you via the <strong>column-gap\u00a0<\/strong>property.<\/p>\n<p>Apply your css like so:<\/p>\n<pre class=\"lang:css decode:true\" title=\"CSS3 Multi Column List\">ul{\r\n-moz-column-gap: 40px;\r\n-webkit-column-gap: 40px;\r\ncolumn-gap: 40px;\r\nlist-style-position: outside;\r\n-moz-column-count: 2;\r\n-webkit-column-count:2;\r\ncolumn-count: 2;\r\n}<\/pre>\n<p>Create\u00a0a simple:<\/p>\n<pre class=\"lang:default decode:true\">&lt;ul&gt;&lt;li&gt;\u2026..&lt;\/li&gt;&lt;\/ul&gt;<\/pre>\n<p>Render!<\/p>\n<p>To extend this, you can then utilize media queries to have a different number of columns on different devices \/ screen sizes. This will keep your lists together, if they are long, rather than needing to divide them up in order to make them \u201clook\u201d even in the page.<\/p>\n<p><a href=\"http:\/\/codepen.io\/jasonflaherty\/pen\/KdOrGW\">Check out a demo<\/a>\u00a0or view it below&#8230;<\/p>\n<p>[codepen_embed height=500 theme_id=1 slug_hash=&#8217;KdOrGW&#8217; user=&#8217;jasonflaherty&#8217; default_tab=&#8217;html&#8217; animations=&#8217;run&#8217;]<br \/>\n[\/codepen_embed]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Long lists need to be displayed differently on different devices generally. CSS3 can ease your pain by dividing these up for you via the <strong>column-gap\u00a0<\/strong>property.<\/p>\n<p class=\"excerpt-link\"><a href=\"https:\/\/jasonflaherty.com\/blog\/2015\/12\/01\/single-list-with-multiple-columns-ala-css3\/\">&sim;&nbsp;Continue Reading&nbsp;&sim;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"footnotes":"","_jetpack_memberships_contains_paid_content":false,"jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[53,51],"tags":[67,54,68,69],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p5OfD9-28","jetpack_likes_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/jasonflaherty.com\/blog\/wp-json\/wp\/v2\/posts\/132"}],"collection":[{"href":"https:\/\/jasonflaherty.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jasonflaherty.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jasonflaherty.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jasonflaherty.com\/blog\/wp-json\/wp\/v2\/comments?post=132"}],"version-history":[{"count":1,"href":"https:\/\/jasonflaherty.com\/blog\/wp-json\/wp\/v2\/posts\/132\/revisions"}],"predecessor-version":[{"id":137,"href":"https:\/\/jasonflaherty.com\/blog\/wp-json\/wp\/v2\/posts\/132\/revisions\/137"}],"wp:attachment":[{"href":"https:\/\/jasonflaherty.com\/blog\/wp-json\/wp\/v2\/media?parent=132"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jasonflaherty.com\/blog\/wp-json\/wp\/v2\/categories?post=132"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jasonflaherty.com\/blog\/wp-json\/wp\/v2\/tags?post=132"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}