Re: [PHP] Re: CSS & tables
On 18/5/09 14:20, Al wrote: It appears this thread has neglected to mention the "display" property values that emulate table elements, e.g., table-row, table-cell, etc. It's mentioned them at least twice. As in: where *.cell{display:table-cell}. Thus, one can make a complete table without once ever using table tags , etc. Personally, using the display table properties to avoid using table tags has left me a bit puzzled. The point of tabular values of "display" is: 1. Allow the specification of HTML table rendering in terms of CSS, whether for HTML or for arbitrary XML. 2. Allow publishers to differentiate between table cells from which user agents should extract data relationships from other markup for which a grid layout is suggested. 3. Allow users to reformat content to make it easy for them to read with their abilities and devices. For example, from the table: CountryPopulation France65 million United Kingdom61 million A user agent can extract the population of France. -- Benjamin Hawkes-Lewis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: CSS & tables
Paul M Foster wrote: On Mon, May 18, 2009 at 09:20:56AM -0400, Al wrote: PJ wrote: I know of no better place to ask. This may not be strictly a PHP issue, but... I am busting my hump trying to format rather large input pages with CSS and trying to avoid tables; but it looks to me like I am wasting my time as positioning with CSS seems an impossibly tortuous exercise. I've managed to do some pages with CSS, but I feel like I am shooting myself in the foot or somewhere... Perhaps I am too demanding. I know that with tables, the formatting is ridiculously fast. Any thoughts, observations or recommendations? It appears this thread has neglected to mention the "display" property values that emulate table elements, e.g., table-row, table-cell, etc. As in: where *.cell{display:table-cell}. Thus, one can make a complete table without once ever using table tags , etc. Personally, using the display table properties to avoid using table tags has left me a bit puzzled. But, I just figured I was overlooking something. Can some one educate me on this point. According to my Visibone cheatsheet, the attributes you're talking about are "unimplemented W3C features". Paul IE8, FF3x etc. do. Problem is with IE7, which makes it impractical to use. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: CSS & tables
On Mon, May 18, 2009 at 09:20:56AM -0400, Al wrote: > > > PJ wrote: >> I know of no better place to ask. This may not be strictly a PHP issue, >> but... >> I am busting my hump trying to format rather large input pages with CSS >> and trying to avoid tables; but it looks to me like I am wasting my time >> as positioning with CSS seems an impossibly tortuous exercise. I've >> managed to do some pages with CSS, but I feel like I am shooting myself >> in the foot or somewhere... >> Perhaps I am too demanding. I know that with tables, the formatting is >> ridiculously fast. >> Any thoughts, observations or recommendations? >> > > It appears this thread has neglected to mention the "display" property > values > that emulate table elements, e.g., table-row, table-cell, etc. As in: > where *.cell{display:table-cell}. Thus, one can make a > complete table without once ever using table tags , etc. > > Personally, using the display table properties to avoid using table tags > has > left me a bit puzzled. But, I just figured I was overlooking something. > > Can some one educate me on this point. According to my Visibone cheatsheet, the attributes you're talking about are "unimplemented W3C features". Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: CSS & tables
PJ wrote: I know of no better place to ask. This may not be strictly a PHP issue, but... I am busting my hump trying to format rather large input pages with CSS and trying to avoid tables; but it looks to me like I am wasting my time as positioning with CSS seems an impossibly tortuous exercise. I've managed to do some pages with CSS, but I feel like I am shooting myself in the foot or somewhere... Perhaps I am too demanding. I know that with tables, the formatting is ridiculously fast. Any thoughts, observations or recommendations? It appears this thread has neglected to mention the "display" property values that emulate table elements, e.g., table-row, table-cell, etc. As in: where *.cell{display:table-cell}. Thus, one can make a complete table without once ever using table tags , etc. Personally, using the display table properties to avoid using table tags has left me a bit puzzled. But, I just figured I was overlooking something. Can some one educate me on this point. Al. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: CSS & tables
On 17/05/2009 20.51, tedd wrote: At 8:08 PM +0200 5/15/09, Daniele Grillenzoni wrote: Most of the IE bugs are due to floating and clearing, once you have learned to master overflow: auto and display: inline, you're good to go. Just don't get insane about trying to achieve pixel perfect in netscape4. Good to go -- only for simple sites. And for pixel perfect, no browser does that. Here's my write-up on the subject: http://sperling.com/four-things-clients-should-know.php Comments welcome. Cheers, tedd Re-read my sentence: "most of the IE bugs" as opposed to "all IE bugs" Also: 404. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: CSS & tables
At 8:08 PM +0200 5/15/09, Daniele Grillenzoni wrote: Most of the IE bugs are due to floating and clearing, once you have learned to master overflow: auto and display: inline, you're good to go. Just don't get insane about trying to achieve pixel perfect in netscape4. Good to go -- only for simple sites. And for pixel perfect, no browser does that. Here's my write-up on the subject: http://sperling.com/four-things-clients-should-know.php Comments welcome. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: CSS & tables
On 15/05/2009 19.25, PJ wrote: I know of no better place to ask. This may not be strictly a PHP issue, but... I am busting my hump trying to format rather large input pages with CSS and trying to avoid tables; but it looks to me like I am wasting my time as positioning with CSS seems an impossibly tortuous exercise. I've managed to do some pages with CSS, but I feel like I am shooting myself in the foot or somewhere... Perhaps I am too demanding. I know that with tables, the formatting is ridiculously fast. Any thoughts, observations or recommendations? A table, meaning ONE table for tough layouts could solve many problems, specially for newbies, but tbh there are enough resources to do pretty much whatever you need to do with css if the layout doesn't have absurd constraints. Most of the IE bugs are due to floating and clearing, once you have learned to master overflow: auto and display: inline, you're good to go. Just don't get insane about trying to achieve pixel perfect in netscape4. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: CSS & tables
PJ wrote: I know of no better place to ask. This may not be strictly a PHP issue, but... I am busting my hump trying to format rather large input pages with CSS and trying to avoid tables; but it looks to me like I am wasting my time as positioning with CSS seems an impossibly tortuous exercise. I've managed to do some pages with CSS, but I feel like I am shooting myself in the foot or somewhere... Perhaps I am too demanding. I know that with tables, the formatting is ridiculously fast. Any thoughts, observations or recommendations? Generally, if your content can vary somewhat, tables are easier. Browsers are very good at handling flow with tables. If the content is relatively constant, are best. Unfortunately DIVs behave differently if they are assigned a "position" element. Learn to use the various values. https://developer.mozilla.org/en/CSS/position Then learn to use Floats https://developer.mozilla.org/en/CSS/float Google, there are many good tutorials for floating divs. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php