-
echo "<td width=100> $aa[0] $aa[1] $aa[2] $aa[3] <span style=\"vertical-align:bottom; text-align:right;\">$day_num</span> </td>";
In a table cell like above, I want to show $aa[] items at the top of the cell under each other, which is ok...But I want to show $day_num at the bottom of that same table cell. I tried the code above but it doesnt work....
I also tried to put $day_num in a <div> such as <div class='day_num'>$day_num</div>
and in css, i say vertical-align:bottom; for that .day_num division....That doesnt work either...
In other words, how can you align different items in a single table cell. By the way I do not want to introduce another table in that cell because it creates problems.
Please help...
-
It would be nice to see exactly what you're trying to do.
I'm sort of thinking you might want to create an actual image to use instead.
Like this: http://www.catpin.com/calendar
Using PHP/GD to generate an image that can be placed with <img src ...>
-
this is a table cell, which is one day in a calendar...if an $aa[] element is there as not null, it will display the title of that event in that day. BUT I want to display the day number at the bottom right corner of that table cell, that's all...the $aa elements are displaying at the left starting from top....which is fine...
-
-
mlseim's link is right on. The way to go is to position it absolutely to the bottom right within the table cell.