Extra space is killing me!

Hi everyone,

I’ve got this problem with space. I’ve been working on it for a few hours and am about ready to just drop my php all together and put everything in by hand.

Here’s the short:

Page 1 shows image, title and 1 paragraph from each artist.

Page 2 shows details on whichever artist they click on.

I have page 1 displaying all artists and showing them in the order of ID number:

[php]

Artists



    <?php
    $query = mysql_query(“SELECT * FROM info ORDER BY id” )
    or die(mysql_error());
    while ($image = mysql_fetch_array($query)){
    ?>
  • 			<a href="artist-details.php?id=<?php echo $image['id'] ?>"><img src="images/artists/<?php echo $image['img2'] ?>" width="238px" height="382px" /></a>
    			<h3><?php echo $image['title'] ?></h3>
    			<p style="min-height:250px;"><?php echo $image['p1'] ?>
    			</p>
    			<a href="artist-details.php?id=<?php echo $image['id'] ?>">Read More</a>
    		</li>
    
    <?php } ?>[/php]

    Here you can see it live: http://curtaincallentertainment.ca/new/artists.php

    As you can see when it goes to the second row it leaves 2 blank spaces as if there were artists there. I have tried adding a few more to see if it happens again on the next row and it actually changed everything so there was no blank space but when I deleted the ones I don’t need it happened again.

    What am I missing?

    Thanks in advance for any help.

in your css file change the padding in this element:

#body.movies ul li p { color:#A5A5A5; font-size:12px; line-height:18px; margin:2px 0 0; padding:20px 20px 18px; }

to this:

#body.movies ul li p { color:#A5A5A5; font-size:12px; line-height:18px; margin:2px 0 0; padding:20px 16px 18px; }

Red :wink:

I’m a little embarrassed and extremely thankful!!

I knew it would be something simple but barely bothered to look at the css code since it worked sometimes but not others.

THANK YOU so much for your help instead of just sending me to another website to look it up myself. I will be sure to check my css from now on.

no worries, glad to help :wink:

Sponsor our Newsletter | Privacy Policy | Terms of Service