php_guest Posted February 14, 2009 Share Posted February 14, 2009 Please tell how to create the following list without table. echo "<table>"; while ($row=mysql_fetch_assoc($result2)) { extract($row); echo "<tr><td>1. </td><td><a href='/user.php?ID=$ID'>$firstName $lastName</a></td><td> $City<td> $Business</td> </td></tr><br />"; } echo "</table>"; Quote Link to comment https://forums.phpfreaks.com/topic/145191-instead-of-table/ Share on other sites More sharing options...
haku Posted February 14, 2009 Share Posted February 14, 2009 1) Create a gradient in photoshop. Take a vertical slice of it, about 5 pixels wide. (some people take 1px slices, which cuts down on download times, but increases the load on the computer). Set this image as the background image to the body tag, and add repeat-x. Then, set the background color of the body to the lower color of the gradient, so that the image blends smoothly into the color of the background. 2+3) Too much to explain in one post, and there are various methods of doing it. Start here: http://www.cssjuice.com/25-rounded-corners-techniques-with-css/ Quote Link to comment https://forums.phpfreaks.com/topic/145191-instead-of-table/#findComment-762074 Share on other sites More sharing options...
php_guest Posted February 14, 2009 Author Share Posted February 14, 2009 tnx. Just one more question. How do you set height of the box to match the content inside it. So if there is more results of row, the box is higher. Quote Link to comment https://forums.phpfreaks.com/topic/145191-instead-of-table/#findComment-762141 Share on other sites More sharing options...
bubbasheeko Posted February 14, 2009 Share Posted February 14, 2009 The box has no special features really...so the content in the middle should expand it automatically - unless you set the height of the box with css. Quote Link to comment https://forums.phpfreaks.com/topic/145191-instead-of-table/#findComment-762160 Share on other sites More sharing options...
haku Posted February 14, 2009 Share Posted February 14, 2009 Exactly. Don't set a height, and the height will expand as necessary. Quote Link to comment https://forums.phpfreaks.com/topic/145191-instead-of-table/#findComment-762263 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.