tags:

views:

179

answers:

5

Is it possible to convert HTML + CSS into HTML for a system that doesn't handle CSS?

  • No, it doesn't handle inline CSS either :-(
+9  A: 

No. Much of what CSS does is not possible with HTML alone. Your best option is to design your site in such a way that when it loses CSS, it still renders in a nice and orderly fashion. Pay very close attention to things like Heading Tags, paragraph tags, lists, etc. Be sure to build semantically-correct sites, and they (in most cases) will degrade quite nicely.

Jonathan Sampson
+2  A: 

The only thing you can do is add styles that were possible with old html3+ attributes and font tags. Quite a bit of stuff is possible, but none of it is going to be automatic. You can go through pretty much everything in css and try to find it's html3+ attribute equivalent.

Things like background font b i center width height are examples of old attributes (or tags in the case of font) that define style (and should generally be ignored these days). I don't envy the work ahead of you, but just make a happy medium between reasonable things and unreasonable styles. Tables also might come in handy for floats as well.

Sounds like an old mobile device?

Alex Sexton
I guess I didn't make it very clear, but definitely not everything is possible, but you can get the general picture...
Alex Sexton
+1  A: 

If you can't use any CSS, I would imagine you would have to resort to possibly deprecated HTML tags/attributes, like font tags and attributes like bgcolor.

This would probably be rather difficult, because to my knowledge you can't achieve everything you can do with CSS, like positioning for example. You would have to switch your layout to use tables and set align, valign, etc.

wsanville
A: 

Two words: Image Maps :) (I've actually seen sites that, in order to "render correctly on every browser" literally just make a big fancy image the background, and add links accordingly via an image map)

Eric
If this is some kind of text browser (like `links`) that would be worse than nothing ;)
voyager
lynx I believe. But cheers! Image maps are not a good idea.
Joseph Silvashy
Oh yes, I hoped my recommendation was not taken seriously :)
Eric
+1  A: 

use this first

http://www.mailchimp.com/labs/inlinecss.php

then replace css with deprecated html

http://www.highdots.com/css-editor/articles/css_equiv.html

metal-gear-solid