Casebash
Casebash

Reputation: 118962

Convert HTML/CSS into plain HTML

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

What options do I have?

Upvotes: 2

Views: 4137

Answers (5)

Jitendra Vyas
Jitendra Vyas

Reputation: 152807

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

Upvotes: 1

Eric
Eric

Reputation: 3344

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)

Upvotes: 0

wsanville
wsanville

Reputation: 37516

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.

Upvotes: 2

Alex Sexton
Alex Sexton

Reputation: 10451

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?

Upvotes: 3

Sampson
Sampson

Reputation: 268434

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.

Upvotes: 13

Related Questions