liamloveslearning Posted August 5, 2008 Share Posted August 5, 2008 hey everyone im having trouble with a page of mine which just displays data in tables' ive never ever been good with them so this may seem really simple but despite my efforts i cant get it to work; i have a page with a table container sort of which is 900px; i then have this code inside it to display one table of data, <table width="600" border="0" cellpadding="4" cellspacing="3" class="box_border"> <tr class="normal" bgcolor="#ECECEC" valign="top"> <td width="180"><strong>{LANG_STATUS}: </strong></td> <td>{PROJECT_STATUS}</td> </tr> <tr class="normal"> <td><strong>{LANG_BUDGET}: </strong></td> <td>{PROJECT_BUDGET}</td> </tr> <tr class="normal" bgcolor="#ECECEC" valign="top"> <td><strong>{LANG_CREATED}:</strong></td> <td>{PROJECT_START_DATE} at {PROJECT_START_TIME} {PROJECT_START_TIMEZONE} </td> </tr> <tr class="normal"> <td><strong>{LANG_BIDENDS}:</strong></td> <td>{PROJECT_END_DATE} at {PROJECT_END_TIME} {PROJECT_END_TIMEZONE} </td> </tr> <tr class="normal" bgcolor="#ECECEC" valign="top"> <td><strong>{LANG_PROJCREATOR}:</strong></td> <td><a href="{PROJECT_CREATOR_LINK}">{PROJECT_CREATOR_USERNAME}</a></td> </tr> <tr class="normal"> <td><strong>{LANG_RATING}: </strong></td> <td> IF("{REVIEWS}"=="0"){({LANG_NOFEEDYET}){:IF} IF("{REVIEWS}"!="0"){<a href="{SITE_URL}reviews.php?id={PROJECT_CREATOR_ID}&type=buyers"><img border="0" src="{SITE_URL}templates/{TPL_NAME}/images/rating_{RATING}.gif"><br>({REVIEWS} {LANG_REVIEWS})</a>{:IF} </td> </tr> <tr class="normal" bgcolor="#ECECEC" valign="top"> <td><strong>{LANG_DESC}:</strong></td> <td> {PROJECT_DESC}</td> </tr> IF("{ATTACHMENT}" == "1"){<tr class="normal" valign="top"><td><strong>{LANG_ATTACHMENT}:</strong></td><td><a href="{SITE_URL}attachment.php?id={FILE_ID}">{FILE_NAME}</a></td></tr>{:IF} <tr class="normal" IF("{ATTACHMENT}"=="1"){bgcolor="#ECECEC"{:IF} valign="top"> <td><strong>{LANG_JOBTYPE}: </strong></td> <td> {LOOP: PROJECT_TYPES}- {PROJECT_TYPES.name}<br> {/LOOP: PROJECT_TYPES} </td> </tr> <tr class="normal" IF("{ATTACHMENT}"=="0"){bgcolor="#ECECEC"{:IF} valign="top"> <td><strong>{LANG_DATABASE}: </strong></td> <td>{PROJECT_DB}</td> </tr> <tr class="normal" IF("{ATTACHMENT}"=="1"){bgcolor="#ECECEC"{:IF}> <td><strong>{LANG_OPSYS}: </strong></td> <td>{PROJECT_OS}</td> </tr> {LOOP: PROJECT_CUSTOM} <tr class="normal" IF("{PROJECT_CUSTOM.count}"%"2"){bgcolor="#ECECEC"{:IF}> <td><strong>{PROJECT_CUSTOM.title}: </strong></td> <td>{PROJECT_CUSTOM.value}</td> </tr> {/LOOP: PROJECT_CUSTOM} </table> that takes up 650px of the container and sits on the left; is it possible to get a table tpo sit alongside that? everytime i try and add another it goes below my table for some reason?thanks Quote Link to comment Share on other sites More sharing options...
obsidian Posted August 5, 2008 Share Posted August 5, 2008 If your layout is set to 900px, your total width of your tables cannot exceed that width, or they will be forced below each other. To get them next to one another, you'll need to float them left with CSS. Quote Link to comment Share on other sites More sharing options...
liamloveslearning Posted August 5, 2008 Author Share Posted August 5, 2008 ive tried style="display:inline" on both tables too may i add yet still no luck; or am i requred to place that on all cells contained in the table too? Quote Link to comment Share on other sites More sharing options...
liamloveslearning Posted August 5, 2008 Author Share Posted August 5, 2008 thanks, i just css'd it and its all okay now Quote Link to comment 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.