{"id":40365,"date":"2012-08-14T21:02:46","date_gmt":"2012-08-14T19:02:46","guid":{"rendered":"https:\/\/nl.wordpress.org\/support\/topic\/css-lijst-opmaken-in-column\/"},"modified":"2016-08-04T23:42:09","modified_gmt":"2016-08-04T23:42:09","slug":"css-lijst-opmaken-in-column","status":"closed","type":"topic","link":"https:\/\/nl.wordpress.org\/support\/topic\/css-lijst-opmaken-in-column\/","title":{"rendered":"CSS lijst opmaken in column."},"content":{"rendered":"<p>Hallo,<\/p>\n<p>Ik heb de volgende situatie, op deze pagina: http:\/\/santacatarinabrasil.com\/ staat rechts een lijst met &#8216;listings&#8217;. Dit is een kolomn die automatisch twee rijen wordt. Nu werkt dat opzich goed, maar niet 100%, soms komen ze niet goed naast elkaar te staan omdat de post dan te breed is.<\/p>\n<p>Dit is de CSS<\/p>\n<pre><code>#latestlistings {\n\twidth: 480px;\n\tfloat: left;\n\t\/*overflow: hidden;*\/\n}\n\n\t#latestlistings .inner {\n\t\tpadding: 27px 20px 20px 20px;\n\t\toverflow: hidden;\n\t}\n\n\t.latestlisting {\n\t\tmargin-bottom: 20px;\n\t\tmargin-right: 10px;\n\t\tfloat: left;\n\t\tposition: relative;\n}\n\n.latestlisting li {\n\tline-height: 1.5em;\n\tfont-size: 1.1em;\n}\n\n\t.latestlisting ul {\n\t\tmargin-top: 5px;\n\t}\n\n\t.latestlisting li.citystatezip {\n\t\tfont-size: 1.4em;\n\t\tmargin-bottom: 5px;\n\t\tfont-weight: bold;\n\t}\n\n\t.latestlisting li.price {\n\t\tfont-size: 1.4em;\n\t}\n\n\t.latestlisting li.bedsbaths {\n\t\t\/* margin-top: 5px; *\/\n\t}<\/code><\/pre>\n<p>En dit is de HTML:<\/p>\n<pre><code>&lt;div id=&quot;latestlistings&quot;&gt;\n\t\t&lt;div class=&quot;inner&quot;&gt;\n\n\t\t\t&lt;?php $recent = new WP_Query(&#039;post_type=listing&amp;post_status=publish&amp;posts_per_page=&#039;.get_option(&#039;wp_recentlistingsnumber_home&#039;)); ?&gt;\n\n\t\t\t&lt;div style=&quot;padding-top: 4px; padding-bottom:15px&quot;&gt;&lt;h2&gt;&lt;?php echo get_option(&#039;wp_heading_recentlistings&#039;) ?&gt;&lt;\/h2&gt;&lt;\/div&gt;\n\n\t\t\t&lt;?php if ($recent-&gt;have_posts()) : while ($recent-&gt;have_posts()) : $recent-&gt;the_post(); ?&gt;\n\t\t\t&lt;?php include &#039;includes\/variables.php&#039; ?&gt;\n\t\t\t&lt;div class=&quot;latestlisting&quot;&gt;\n\t\t\t&lt;?php $sliderimages = get_post_meta($post-&gt;ID, &#039;images_value&#039;, true);\n\t\t\tif ($sliderimages) {\n\t\t\t\t$arr_sliderimages = explode(&quot;\\n&quot;, $sliderimages);\n\t\t\t\t} else {\n\t\t\t\t$arr_sliderimages = get_gallery_images();\n\t\t\t\t}\n\n\t\t\t\t$firstimage = $arr_sliderimages[0];\n\t\t\t\t$arr_sliderimages = parse_url($firstimage);\n\n\t\t\t\t\/\/echo $arr_sliderimages[path];\n\n\t\t\t\t$resized = timthumb(100, 200, $arr_sliderimages[path], 1);\n\t\t\t?&gt;\t\n\n\t\t\t&lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot;&gt;&lt;img width=&quot;200&quot; height=&quot;100&quot; alt=&quot;Image for &lt;?php echo $address; ?&gt;&quot; src=&quot;&lt;?php echo $resized ?&gt;&quot; \/&gt;&lt;\/a&gt;\n\t\t\t&lt;div class=&quot;shadow-small&quot;&gt;&lt;\/div&gt;\n\n\t\t\t&lt;?php include &#039;includes\/bannerssmall.php&#039;; ?&gt;\n\n\t\t\t&lt;ul&gt;\n\t\t\t&lt;li class=&quot;citystatezip&quot;&gt;&lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot;&gt;&lt;?php echo $citystatezip ?&gt;&lt;\/a&gt;&lt;\/li&gt;\n\t\t\t&lt;li class=&quot;address&quot;&gt;&lt;?php echo $address; ?&gt;&lt;\/li&gt;\n\n\t\t\t&lt;?php if ($cr == &quot;Residential&quot;) { ?&gt;\n\t\t\t\t&lt;li class=&quot;bedsbaths&quot;&gt;&lt;?php echo get_option(&#039;wp_bedrooms_text&#039;); ?&gt;: &lt;?php echo $beds ?&gt; &amp;bull; &lt;?php echo get_option(&#039;wp_bathrooms_text&#039;); ?&gt;: &lt;?php echo $baths ?&gt;&lt;\/li&gt;\n\t\t\t&lt;?php } ?&gt;\n\t\t\t&lt;br \/&gt;\n\t\t\t&lt;li class=&quot;price&quot;&gt;&lt;?php include &#039;includes\/price.php&#039;; ?&gt;&lt;\/li&gt;\n                        &lt;br \/&gt;\n\t\t\t&lt;\/ul&gt;\n\t\t\t&amp;nbsp;\n\t\t\t&lt;\/div&gt;&lt;!-- end latestlisting --&gt;<\/code><\/pre>\n<p>Hoe zou ik dit kunnen opmaken dat het los in twee kolommen komt te staan (zoals het hoort)en niet zoals nu in \u00e9\u00e9n kolom en twee rijtjes naast elkaar?<\/p>\n<p>Alvast super veel dank!<\/p>\n","protected":false},"template":"","class_list":["post-40365","topic","type-topic","status-closed","hentry","topic-tag-css","topic-tag-html","topic-tag-list","topic-tag-real-estate","topic-tag-wordpress"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/nl.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/40365","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nl.wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/nl.wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/nl.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/40365\/revisions"}],"wp:attachment":[{"href":"https:\/\/nl.wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=40365"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}