Advertisement

06.24.2008 at 02:01PM PDT, ID: 23512631
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

6.9

Making the columns in my table line up nice and neat

Asked by dm404 in Hypertext Markup Language (HTML), Cascading Style Sheets (CSS), Extensible HTML (XHTML)

Tags:

Hi there,

I have a query that retrieves events. These events are each displayed in individual tables.

There are two type of events, one with a flyer one without. With the help of EE i have it so that table changes depending on whether the flyer is empty.

Table is alway 800 in width

With flyer
- 1st row has name, price and time.
- 2nd row has description and flyer. Description colspan at two.

No flyer
- 1st row has name, price and time.
- 2nd row has description. Description colspan at 3.

The problem is that I can never get the columns to appear in line on both a table with a flyer and a table without a flyer. It is always the price and time that appear 'out of step' so to speak.

In an ideal world I'd want name to have a width of 550 and align left. Time to have width of 125 and align left and Price to have with width of 125 and align right. No flyer would have description spanning all 3 and with flyer would description spanning name and time, with flyer spanning price and align right.

My code always produces out of step columns when both type of tables are displayed.

Any idea?

Thanks in advance,

DanStart Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
echo '<div class="center">
 
<table class="event" width="800" align="center">
 
<tr><td class="bold" align="left" width="600">' . $row4['EventName'] . '  at <a href="venueprofile.php?VenueID=' . $row4['VenueID'] . '">' . $row4['VenueName'] . '</a></td><td class="grey" align="left" width="100">Time:' . substr($row4['EventTime'],0,5) . '</td><td class="grey" align="right" width="100">Price:' . $row4['EventPrice'] . '</td>
</tr>
<tr>';
if (empty($row4['EventFlyer']))
{
        ?>
        <td class="description" colspan="3" align="left"><?php echo $row4['EventDescription'];?></td>
        <?php
}
else
{
        ?>
        <tr>
<?php
if (empty($row4['EventFlyer']))
{
	?>
	<td class="description" colspan="2" align="left"><?php echo $row4['EventDescription'];?></td>
	<?php
}
else
{
	?>
	<td class="description" colspan="2" align="left"><?php echo $row4['EventDescription'];?></td>
 
	<td align="right" width="100" colspan="1"><img id="<?php echo $row4['EventID'];?>" alt="" src="http://localhost/mywebsite/uploads/Thumbs/<?php echo $row4['EventFlyer']; ?>" pbsrc="http://localhost/mywebsite/uploads/<?php echo $row4['EventFlyer']; ?>" style="width: 65px; height: 65px;" class="PopBoxImageSmall" title="<?php echo $row4['EventName']; ?> at <?php echo $row4['VenueName']; ?>. It starts at <?php echo $row4['EventTime']; ?>. Entry is <?php echo $row4['EventPrice']; ?>" onclick="Pop(this,60,'PopBoxImageLarge');" ondblclick="Revert(this,60,'PopBoxImageSmall');"/></td>
	<?php
}
?>
</tr>
 
</table>
 
<?php
} echo '</div>';
}
 
?>
 
Keywords: Making the columns in my table line up …
 
Loading Advertisement...
 
[+][-]06.24.2008 at 02:08PM PDT, ID: 21860421

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.24.2008 at 02:17PM PDT, ID: 21860501

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.24.2008 at 02:17PM PDT, ID: 21860504

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.24.2008 at 03:04PM PDT, ID: 21860832

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.24.2008 at 03:08PM PDT, ID: 21860873

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.24.2008 at 03:18PM PDT, ID: 21860969

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.24.2008 at 04:43PM PDT, ID: 21861550

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Hypertext Markup Language (HTML), Cascading Style Sheets (CSS), Extensible HTML (XHTML)
Tags: HTML, XHTML, CSS
Sign Up Now!
Solution Provided By: hielo
Participating Experts: 4
Solution Grade: B
 
 
[+][-]06.24.2008 at 04:53PM PDT, ID: 21861589

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.25.2008 at 11:52PM PDT, ID: 21872276

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.25.2008 at 11:58PM PDT, ID: 21872312

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.26.2008 at 01:23PM PDT, ID: 21878654

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.26.2008 at 02:30PM PDT, ID: 21879209

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.26.2008 at 02:40PM PDT, ID: 21879286

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.26.2008 at 04:53PM PDT, ID: 21880003

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]06.26.2008 at 05:02PM PDT, ID: 21880037

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]06.26.2008 at 05:03PM PDT, ID: 21880047

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.02.2008 at 10:45AM PDT, ID: 21918839

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.09.2008 at 01:23AM PDT, ID: 21961469

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.14.2008 at 01:36AM PDT, ID: 21996497

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-44 / EE_QW_2_20070628