Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: CSS back into HTML

by halley (Prior)
on Mar 17, 2004 at 16:50 UTC ( #337405=note: print w/replies, xml ) Need Help??


in reply to CSS back into HTML

Sounds like an ugly task.

(1) HTML cannot express all formatting which CSS can express.
(2) The output is now hardwired to mix content and presentation. I hope you're not throwing away the clean content files.

Can you accept style="..." in your HTML tags? Those are still CSS, but without the dependence on external style sheet files.

If you can accept that, you can probably just accept a <style>...</style> ahead of the body. That should be trivial to piece together. You just replace each stylesheet reference with a style tag.

--
[ e d @ h a l l e y . c c ]

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://337405]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2020-12-02 19:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you use taint mode?





    Results (45 votes). Check out past polls.

    Notices?