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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T05:22:29+00:00 2026-05-21T05:22:29+00:00

I have a weird issue. I have a dynamic website www.lamanscanada.com it appears fine

  • 0

I have a weird issue. I have a dynamic website http://www.lamanscanada.com it appears fine in firefox and safari and almost perfect in IE7. But it appears that on certain php generated html. There is a bunch of space added after the function output. I also user mod_rewrite for nice SEO urls just a note.

The function sorts an array of data into columns with bullets

<?php
//breaks array values into two columns
function groupBullets($array){
   //count the array items
   $bulletcount = count($array);
   //divides that in two and round the result 
   $roundhalf = round(($bulletcount/2));
   //initailize a counting variable
   $i=1;
   //loop throught the array 
   foreach($array as $bullet){
       //if it is the first item 
       if($i==1){
           echo "<span class=\"container\">";//open the main container div
       }
       echo "<span class=\"bullet\">&bull;&nbsp;$bullet</span>";//then create bullet
       //if the counter is at the half mark
       if($i==$roundhalf){
           echo "</span>";//close the container
           $i=1;//and start the counter over
       }else{
           $i++;//if not at half keep counting
       }
   }
}
//end

//I am implementing it like this:
//this is my array it actually has a second level
$array = array(
        columngroup01("bullet 1","bullet 2","bullet 3","bullet 4"),
        columngroup02("bullet 1","bullet 2","bullet 3","bullet 4")
);

//I loop through this array
foreach($array as $column=>$arrayofbullets){
    echo "<div class=\"columncontainer\">".//open the div contains the columns
    "<div class=\"heading\">$column</div>";//print the title of the column
    //use the groupBullets function on each array of bullets
    groupBullets($arrayofbullets);
    echo "</div>";//close the column 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-21T05:22:30+00:00Added an answer on May 21, 2026 at 5:22 am

    The <span class="features"> is not being closed at the end of the generated list of <span class="featureitem"> tags.

    Current generated output:

    <div class="infoblock">
        <div class="infoheading">features</div>
        <span class="features">
            <span class="featureitem">&bull;&nbsp;10'X6'X8' Aluminum Extrusion Structure</span>
            <span class="featureitem">&bull;&nbsp;R18 Insulated Panels</span>
            ...
    </div>
    

    Needs to be:

    <div class="infoblock">
        <div class="infoheading">features</div>
        <span class="features">
            <span class="featureitem">&bull;&nbsp;10'X6'X8' Aluminum Extrusion Structure</span>
            <span class="featureitem">&bull;&nbsp;R18 Insulated Panels</span>
            ...
        </span>
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a weird issue that only seems to be affecting IE 7. The
I have a weird issue. I am opening a popup window in IE6 with
I have a weird issue using polymorphism. I have a base class that implements
I have a weird issue. Say you have the following: Application.ThreadException += something; try
I have a weird issue. I can get Event.COMPLETE to fire when I set
I have a weird issue working with the Javascript Regexp.exec function. When calling multiple
I have a weird issue. Codesign refuses to sign this big project I have,
I have a weird issue. Here is the setup: I have a NSOperationQueue which
I have a weird issue with session variables. I'm storing some credentials in sessions
I have a weird issue trying to use AsyncSocket. In my app I actually

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.