(Saving as HTML) Force CSSClassnames even for tags like Body
Posted: Fri Nov 15, 2013 2:55 pm
Hi,
Iam currently forced to use InlineCSS.
When i use the defaultoption, i have a few issues with the generated CSS-Table.
The content sofar is fine, if you use this HTML-Document as a standalone page in a Browser. But if you include the generated Dokument in another, it'll overwrite existing CSS-Deklarations.
This happens, because the Table includes definitions for the tags
Body,ul,ol,p
and others.
I'd like to force it to use classnames for all deklarations. So let's say i can give it a name or prefix "MyStyle", it should generated CSS like this:
and the html is written like this:
This allows me to encapsulate the document much easier in other html-dokuments.
This is for specific reason, just to note: i mostly have no influence on how these documents are encapsulated, so i can't change this method.
Greetings
Memnarch
Iam currently forced to use InlineCSS.
When i use the defaultoption, i have a few issues with the generated CSS-Table.
The content sofar is fine, if you use this HTML-Document as a standalone page in a Browser. But if you include the generated Dokument in another, it'll overwrite existing CSS-Deklarations.
This happens, because the Table includes definitions for the tags
Body,ul,ol,p
and others.
I'd like to force it to use classnames for all deklarations. So let's say i can give it a name or prefix "MyStyle", it should generated CSS like this:
Code: Select all
body.MyStyle
{
font-size: 8pt;
font-family: 'Tahoma', 'Geneva', sans-serif;
font-style: normal;
font-weight: normal;
color: #000000;
text-decoration: none;
}
Code: Select all
<body class="MyStyle"></body>
This is for specific reason, just to note: i mostly have no influence on how these documents are encapsulated, so i can't change this method.
Greetings
Memnarch