homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

Detecting if browser will use CSS
I want to do different DocType if not CSS

 10:19 pm on Feb 2, 2013 (gmt 0)

How could I detect if browser will use CSS?
I want to do different DocType if not CSS.
The reason I want to do this is I currently have a Table layout which works great but it won't validate with HTML5. So I want to keep my table layout when there is no CSS and design a new layout for HTML5.

Here are the hosting specs:
Apache version 2.2.21
PHP version 5.2.17
MySQL version 5.0.96-community-log



 11:08 pm on Feb 2, 2013 (gmt 0)

There is no browser actively used that's not going to do CSS.

Even the very few special browsers (like those used to show braille, read out text, or pure text based browsers) will work a lot better it you forget about abusing tables for layout.

Just remove the tables and go for semantic markup in html and CSS for layout.


 11:41 pm on Feb 2, 2013 (gmt 0)

And besides...

The validator by itself doesn't know that you are using the tables for layout. So you're doing something else wrong. And it's likely to become even more visibly wrong if you disable the CSS.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved