Re: CSS & tables
| From: | Nathan Rixham | Date: | Sun, 17 May 2009 22:20:19 +0000 |
| Subject: | Re: CSS & tables | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-292717@lists.php.net to get a copy of this message | ||
Paul M Foster wrote:
On Sun, May 17, 2009 at 08:40:33PM +0100, Nathan Rixham wrote:and if every site a user visited was screwed in IE6 because the developers had made it without tables, maybe they'd all upgrade to something newer. you never know we might be bringing it on ourselves by still coding sites to be compatible with old browsers. When I go and buy a film I don't buy a vhs or a betamax.. because I can't - that industry simply stopped making them and if I want to own a new film I buy the dvd - I don't write to paramount and complain because I only have a betamax.tedd wrote:It's very pretty, Nathan. *Except* in IE6, which is what probably most of the world is using. In IE6, the day labels are lined up one on top of each other, and there are no date "cells" at all. No numbers, no nothing. And therein lies the reason why people use tables. PaulAt 11:28 PM +0100 5/15/09, Nathan Rixham wrote:hi tedd, didn't have one to hand so quickly knocked up a basic one here: http://programphp.com/Calendar/ all sizes etc are in em so it'll fully resize - you'll see in the source anyways - all css. have to say it's not great but it's just a quick demo to show it's more than possible.tedd wrote:Okay -- so you find them easier to use for this purpose. This is my little php calendar (not all the code is mine): http://php1.net/my-php-calendar/ and I use tables. I would not want to redo this script using pure css, but I probably will do it at some point. We all have investments into our code. Do you have a css calendar to show?However, there are occasions such as in a calendar where not using a table would be more than difficult. I haven't received a decree yet as to IF that would be considered column data or not.I'm gonna differ on this one, when you simply float each calender item to the left you're pretty much done, in many cases i find it easier than tables.