To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
PHPBuilder.com  
 

 

Go Back   PHPBuilder.com > Misc Help > ClientSide Technologies

ClientSide Technologies Discuss HTML/CSS/Javascript, and any other client-side technologies, here.

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 07-27-2010, 06:35 AM   #1
jwmessiah
Junior Member
 
Join Date: Jun 2010
Posts: 6
resolved [RESOLVED] PHP and CSS lists..

Hey guys, wondering if you can help me out, i can't for the life of me figure out why this is displaying strangely.. it's doing it in every browser, at first i got rid of it by sorting the recordset in descending order, but now i'm getting gaps popping up all over the shop!

i'll attach a picture of what's happening, and put the code below:

PHP Code:
<ul>
            <?php
            $result
=mysql_query("SELECT s_id, s_name, s_price, s_imagedir FROM tbl_stock inner join tbl_cat on s_cat=c_id where s_cat=". $_GET['cat'] . " Order by s_id limit 0,5");
                        
            while(
$row = mysql_fetch_array($result))
              {
?>
            <li class="prod">
            <p align="center">
            <?php echo "<a href='shop.php?item=" . $row['s_id'] ."'>"; ?>
            <img src="images/<?php echo $row['s_imagedir'] ;?>/1g.jpg" border="0" /></a></p>
            <span class="ptext"><?php echo $row['s_name'] ;?></span><br />
            <span class="pprice">&pound;<?php echo $row['s_price'] ;?></span>
            </li>
             <?php } ?>      
        </ul>
thanks in advance

P
Attached Images
File Type: jpg error.jpg (60.2 KB, 27 views)

Last edited by bradgrafelman; 07-27-2010 at 11:13 AM. Reason: bbcode tags modified
jwmessiah is offline   Reply With Quote
Old 07-27-2010, 08:36 AM   #2
jwmessiah
Junior Member
 
Join Date: Jun 2010
Posts: 6
sorted. had my css height set to auto for that list object when it should have been a set height, set it to 200 and it not only looks better but works a treat...

laters!
jwmessiah is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 08:04 AM.








Acceptable Use Policy

Internet.com
The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.