php - Need Help Formatting with the code -
ok have been dying on page...the code below...if can visit , see not formatting right...i wanting format in way in line , not jumbled is...what change in code below...
where 1 properity below other...u see when @ site
http://ampmproperties.com/listing-of-properties-available
<style> #para1{ text-align:center;} .bdr_blb{ border:#000000 solid 4px; height:70px; background:#cccccc; text-align:center; font-size:14px; font-weight:700;} .light32{ font-size:32px;} .bggrey{ background:#cccccc;} .light18{ font-size:18px;} #bedroom4{ background:#cccccc; } .heading_div{float:left;} .entry-content{float:left;} .thumnail_col ul li { float: left; list-style: none outside none; margin-right: 15px; } .thumnail_col ul li img{background:none; border:none;} </style> ?> <div id="container"> <div id="" role="main"> <?php $args = array( 'category_name' => 'lease', 'orderby' => 'title' ,'order' => 'asc' ); $loop = new wp_query( $args ); while ( $loop->have_posts() ) : $loop->the_post(); if ($count==1) { echo "<tr>"; } ?> <td><div class="lease"> <div class="heading_div"><h2 class="entry-title"><strong><u> <?php echo '<a href="'.get_bloginfo('url').'/lease/'.$loop->post->post_name.'" target="_blank">'.$loop->post->post_title.'</a>'; ?> </u></strong></div></h2> <div class="entry-content"> <div class="desc"> <?php the_content(); ?> </div> </div></div></td> <?php if($count==$number_of_columns) { echo "</tr>"; $count=0; } $count++; endwhile; ?> </div><!-- #content --> </div><!-- #container -->
you floating elements in each of lease divs. can add following css , should sort things out. although think recommend entering explicit <br style="clear: both;" />
after each entry-content instead. although still looks bad. want have float: left on heading_div , entry-content @ all?
.lease { clear: both; }
Comments
Post a Comment