| | |
Rounded Corners?
Please support our HTML and CSS advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
It's not an opinion. It is a fact. The W3 says clearly:
Read it for yourself: http://www.w3.org/TR/html4/struct/tables.html
•
•
•
•
Originally Posted by W3C
Tables should not be used purely as a means to layout document content as this may present problems when rendering to non-visual media. Additionally, when used with graphics, these tables may force users to scroll horizontally to view a table designed on a system with a larger display. To minimize these problems, authors should use style sheets to control layout rather than tables.
lol well I'm glad you learned something and I'm sorry we sortof hijacked your thread
•
•
•
•
Originally Posted by DaveSW
It's not an opinion. It is a fact. The W3 says clearly:
"Tables should not be used purely as a means to layout document content as this may present problems when rendering to non-visual media. Additionally, when used with graphics, these tables may force users to scroll horizontally to view a table designed on a system with a larger display. To minimize these problems, authors should use style sheets to control layout rather than tables."
And here, "Additionally, when used with graphics, these tables may force users to scroll horizontally to view a table designed on a system with a larger display." Once again, "MAY". This part can simply be stopped via testing by the coder/designer. And once again, won't always happen. Testing comes into play here.
Just to quickly say though, I do not dislike css and do not think that tables are "better" (I actually use both since my designs are so graphic intensive, tables and css for the table and cell attributes), but to say they should not be used for something as simple as rounded corners is crazy. Not everyone in the world is worried about 100% pristine/perfect code in the eyes of W3. Especially for something so small.
Why would you need a table for rounded corners? The table is simply a means of producing a block level element on the page. A div is exactly the same in function, it just needs less code.
You are correct that the screen width problem can be negated by careful design. However, the may in 'may present problems' is dependant upon the user agent, not a random probability of sometimes it does and sometimes it doesn't. Certain text only browsers ignore tabulated content completely. Others render your content reading left to right, which means the order is completely wrong if you have a table with a few columns/rows. A complex layout can be completely screwed up. And since google is like a text only browser, you should care.
The W3C was cited as evidence that CSS for layout was a fact, not an opinion. The real reasons why CSS is better are in the first link - centralised control over presentation, reduced code redundancies resulting in bandwidth savings, easier to edit source code, improved control over presentation of your content to older browsers and non-standard browsers (such as pda/mobile phone small screen devices)... etc.
You are correct that the screen width problem can be negated by careful design. However, the may in 'may present problems' is dependant upon the user agent, not a random probability of sometimes it does and sometimes it doesn't. Certain text only browsers ignore tabulated content completely. Others render your content reading left to right, which means the order is completely wrong if you have a table with a few columns/rows. A complex layout can be completely screwed up. And since google is like a text only browser, you should care.
The W3C was cited as evidence that CSS for layout was a fact, not an opinion. The real reasons why CSS is better are in the first link - centralised control over presentation, reduced code redundancies resulting in bandwidth savings, easier to edit source code, improved control over presentation of your content to older browsers and non-standard browsers (such as pda/mobile phone small screen devices)... etc.
![]() |
Similar Threads
- Resolution for Rounded Corners (DaniWeb Community Feedback)
- Rounded corners via css: Fine in IE, broken in Firefox (HTML and CSS)
Other Threads in the HTML and CSS Forum
- Previous Thread: .htm any different from .html?
- Next Thread: Single Table Cell background
| Thread Tools | Search this Thread |
appointments asp background backgroundcolor beta browser bug calendar cart cgi code codeinjection corporateidentity css design development displayimageinsteadofflash dreamweaver emailmarketing epilepsy explorer firefox flash form format google griefers hackers hitcounter hover html ide ie7 ie8 iframe image images internet internetexplorer intranet iphone javascript jpeg layout macbook maps marketshare microsoft mozilla multimedia navigationbars news offshoreoutsourcingcompany opacity opera optimization perl pnginie6 positioning problem scroll seo shopping studio swf swf. textcolor timecolor titletags url urlseparatedwords visual visualization web webdevelopment webform website windows7 xml xsl





