Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6169491
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T22:52:00+00:00 2026-05-23T22:52:00+00:00

Ok I have been dying on this page…the code is below…if you can visit

  • 0

Ok I have been dying on this page…the code is below…if you can visit and see that it is not formatting right…I am wanting it to format in a way that it is all in line and not jumbled up like it is…what do I change in the code below…

Where one properity is below the other…u will see when you look at the 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 -->
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T22:52:01+00:00Added an answer on May 23, 2026 at 10:52 pm

    You are floating elements in each of your lease divs. You can add the following css and it should sort things out. Although I think I would recommend entering an explicit <br style="clear: both;" /> after each entry-content instead. Although it still looks bad. Do you really want to have float: left on heading_div and entry-content at all?

    .lease { clear: both; }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been trying this and it does not seem like it wants to
I know that somewhere in the history of the internet this must have been
This page I have been developing for my app has been working fine locally
I've been doing some Web-Projects lately that rely on heavy Data-Binding and have been
I am running wampserver on my windows vista machine. I have been doing this
I have read this question and this page linked to in the question, as
I have been needing a way to, once I redirect to a PHP page
I have been tasked with optimizing a marketing landing page for speed. It already
Although this question have been asked and answered before, including on this website, I
Have a body tag on a page that has both an id and a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.