|
Posted by Jonathan N. Little on 12/24/23 11:57
jstammer wrote:
> I'm looking for a way to convert CSS to HTML. Our company's intranet is
> set up so that it strips the stylesheet out of the code. I'd like to be
This makes no sense. Who's code? You mean when viewing a *public* web
site on the Internet? You can set you browser to *override* the defined
stylesheet but it does not remove or change the markup.
> able
> to use existing web pages that utilize CSS but somehow convert my
> stylesheet to inline styles. Is this possible?
Why? You still using CSS, but that you now bloat the markup with
repetitive instances of the style properties as attributes!
Once in style sheet
P { text-indent: 1em; font-family: arial, hevetica, sans-serif; }
*vs*
<p style="text-indent: 1em; font-family: arial, hevetica, sans-serif;">
Lorem ipsum dolor sit amet...
</p>
<p style="text-indent: 1em; font-family: arial, hevetica, sans-serif;">
Suspendisse potenti. Suspendisse ...
</p>
<p style="text-indent: 1em; font-family: arial, hevetica, sans-serif;">
Pellentesque eros purus, consequat ...
</p>
<p style="text-indent: 1em; font-family: arial, hevetica, sans-serif;">
Duis dapibus, dolor eget scelerisque ...
</p>
<p style="text-indent: 1em; font-family: arial, hevetica, sans-serif;">
Suspendisse egestas tempor erat. Duis ...
</p>
<p style="text-indent: 1em; font-family: arial, hevetica, sans-serif;">
Morbi mollis. Quisque sollicitudin, ...
</p>
Make no sense!
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
[Back to original message]
|