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 8117631
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T04:14:10+00:00 2026-06-06T04:14:10+00:00

I created a php file that parses a .txt file to display real estate

  • 0

I created a php file that parses a .txt file to display real estate ads.

I used a foreach loop for the arrays and everything works well except in IE7. The text size increases after each array in IE7. This is all within in a joomla article and the appropriate php file is included using the Sourcerer plugin.

I changed the font-size from % to em in the appropriate css files, but that did not work. I tried to use zoom:1 in the divs but I already have a position:absolute within the containg div and that did not work either.

The foreach loop:

foreach($results as $book){
echo '<div id="annonces">';
echo '<div id = "annoncetext">';
echo '<p class="annonces_title"> ' . $book[2]. '</p>';
echo '<p class="annonces_ref">' . $book[3]. ' m<sup>2</sup> - ' . $book[4] . ' pièces - ' . $book[5] . ' chambres<br>';
echo '<p class="annonces_prix">Prix : '  . $book[6]. ' €<br></p>';
echo '<p class="annonces_description">' .  $book[8]. '<br><br>';
'</div></div>';

And some of the relevant css:

p.annonces_title{ 
    font-size: 1.75em;
    font-weight:normal;
    line-height:28px;
    padding: 5px 10px 1px 0px;
    margin: 0px 4px 13px 0;
    letter-spacing:0px;
    text-transform: uppercase;
    color:#fff;
}
p.annonces_prix{ 
    font-size:1.3em;
    line-height:18px;
    padding:8px 0 4px 0;
    margin-bottom:8px;
    color:#fff;
    font-weight:normal;
    text-transform:none;
}

#annonces {
    margin-left:0;
    margin-top:30px;
    width:1080px;
    font-size-adjust:none;
    min-height:500px;
    position:relative;
    background-image:url(filet-annonces.jpg);
    background-position:bottom;
    background-repeat:no-repeat;
}

#annoncetext {
    position:absolute;
    top:0;
    width:340px;    
}

To finish, not only do the text-size increase with each new ad, but the footer, which is not in the loop is also enlarged. Here is a link to the page.
http://www.lagrandiere-immobilier.fr/espace-location/nos-offres-de-location
The phenomena can be observed in Adobe BrowserLab.

  • 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-06-06T04:14:11+00:00Added an answer on June 6, 2026 at 4:14 am

    You have missing closing </p> tag in the end of the lines

    echo '<p class="annonces_ref">' . $book[3]. ' m<sup>2</sup> - ' . $book[4] . ' pièces - ' . $book[5] . ' chambres<br>';
    

    and also here:

    echo '<p class="annonces_description">' .  $book[8]. '<br><br>';
    

    So your HTML might be rendered incorrectly.

    Additionaly you shouldn’t use ID when in loop, because ID attribute should be unique,
    so I suggest changing it to class attribute, or make it unique by adding ID suffix.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I created a jQuery function that calls on a PHP server-side file that pulls
I am trying to create a php file that adds a user and create
Is it possible to create a PHP file that runs once with no errors
I am trying to create a php file that would scan a directory, make
I have a config.php file that creates an array, something like $config = array(
I am writing a PHP code that creates another PHP file with fopen and
i want to save an .XML file that i create with php dom, but
I have a link which looks like that: www.domain.com/file.php I want to create .htaccess
I have a PHP app that creates a CSV file which is forced to
I am looking for a PHP class that can parse an ICalendar (ICS) file

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.