Ask Your Question
1

How to enter CSS rules inside individual HTML tags? [closed]

asked 2012-10-01 13:41:33 +0200

alan gravatar image

I have to create several documents for a forum-style website. Pasting directly from LO just leaves out a lot of the formatting, so I tried exporting to html, and paste the generated code to the site. It turns out that it is disallowed to have a <style type="text/css"> tag in there, which would have to happen outside of the header section. It is in short impossible for me to attach these CSS rules.

Questions: Is it possible to have LibreOffice add style="" modifiers to each individual tag instead of using a general header definition when exporting to HTML? If not, is there some app out there that does this sort of thing?

Thanks

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by Alex Kemp
close date 2015-10-23 13:22:31.716474

1 Answer

Sort by » oldest newest most voted
0

answered 2013-02-23 09:58:47 +0200

qubit gravatar image

Hi @alan,

I'm not aware of an configuration options for the HTML export filter, but it looks like there are several "CSS-inlining" tools available online, such as this one:

Here's a python lib to do CSS inlining -- useful if you need to run it locally, want to integrate it into another tool, or etc...

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-10-01 13:41:33 +0200

Seen: 325 times

Last updated: Feb 23 '13