Ask Your Question
0

html import to odt with custom style

asked 2018-08-02 11:52:58 +0200

mastupristri gravatar image

if I open this html in Writer

<html>
<head>
<title>Test</title>
</head>
<body>
<h1>Test heading 1</h1>
</body>
</html>

I get a document with Heading 1 style heading

How should I modify my html to get a custom style heading (e.g. MyHeading 1)?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2019-04-26 09:14:27 +0200

Lila gravatar image

Hi! I know this may be late, but here is how it works. Standard markup is converted to standard styles, ie. h1 -> Heading 1 and so on. If you put a style tag on top of it, like <style> h1 {font: bold 18pt "Lucida Sans Unicode"; padding-top: 10pt;}</style> the style will be formatted as required (I put pt for font size only in my html-to-odt css ;) ). If you want your own classes you can use CSS classes (i.e. h1.myHeading) and setup it on the style tag, so that once imported you will see style "Heading 1.myHeading" in your syle list. I hope this help!

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2018-08-02 11:52:58 +0200

Seen: 46 times

Last updated: Apr 26