vipete
Aangemaakte reacties
2 reacties aan het bekijken - 1 tot 2 (van in totaal 2)
-
Forum: Thema en CSS/opmaak
In antwoord op: CSS lijst opmaken in column.Hi! Thanks voor je reactie.
Dit hielp helaas niet. Ik denk echt dat ik twee columns moet maken. Maar hoe?
Forum: Thema en CSS/opmaak
In antwoord op: CSS lijst opmaken in column.Overigens gaat het hier wel goed: http://santacatarinabrasil.com/en/
Maar door alle aanpassingen in de taal kan ik niet even makkelijk mijn theme updaten (helaas).Hierbij is dit de CSS:
#latestlistings { width: 240px; float: left; overflow: hidden; } #latestlistings .inner { padding: 27px 0px 20px 20px; overflow: hidden; } .latestlisting { margin-right: 27px; float: left; position: relative; min-height: 247px; width: 208px; } .latestlisting li { line-height: 1.5em; font-size: 1.1em; } .latestlisting ul { margin-top: 5px; } .latestlisting li.citystatezip { font-size: 1.3em; font-weight: bold; } .latestlisting li.price { font-size: 1.4em; } .latestlisting li.bedsbaths { /* margin-top: 5px; */ }
En de html:
<div id="latestlistings" class="<?php echo $latestlistingsclass; ?>"> <div class="inner"> <?php $recent = new WP_Query('post_type=listing&post_status=publish&posts_per_page='.get_option('wp_recentlistingsnumber_home')); ?> <h3><?php echo get_option('wp_heading_recentlistings') ?></h3> <?php if ($recent->have_posts()) : while ($recent->have_posts()) : $recent->the_post(); ?> <?php include 'includes/variables.php' ?> <div class="latestlisting"> <?php $sliderimages = get_post_meta($post->ID, 'images_value', true); if ($sliderimages) { $arr_sliderimages = explode("\n", $sliderimages); } else { $arr_sliderimages = get_gallery_images(); } $firstimage = $arr_sliderimages[0]; $arr_sliderimages = parse_url($firstimage); //echo $arr_sliderimages[path]; $resized = timthumb(100, 200, $arr_sliderimages[path], 1); ?> <a href="<?php the_permalink(); ?>"><img width="200" height="100" alt="Image for <?php echo $address; ?>" src="<?php echo $resized ?>" /></a> <div class="shadow-small"></div> <?php include 'includes/bannerssmall.php'; ?> <ul> <li class="citystatezip"><a href="<?php the_permalink(); ?>"><?php echo $citystatezip ?></a></li> <li class="address"><?php echo $address; ?></li> <?php if ($cr == "Residential") { ?> <li class="bedsbaths"><?php echo get_option('wp_bedrooms_text'); ?>: <?php echo $beds ?> • <?php echo get_option('wp_bathrooms_text'); ?>: <?php echo $baths ?></li> <?php } ?> <li class="price"><?php include 'includes/price.php'; ?></li> </ul> </div><!-- end latestlisting -->
2 reacties aan het bekijken - 1 tot 2 (van in totaal 2)