View Single Post
Old 04-10-2015, 12:33 PM   #2
Arios
A curiosus lector!
Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.
 
Arios's Avatar
 
Posts: 463
Karma: 2015140
Join Date: Jun 2012
Device: Sony PRS-T1, Kobo Touch
Salut Manon123,

Tu pourrais effectuer ce formatage dès le départ avec LibreOffice.

Pour éditer ton epub, tu peux utiliser Sigil ou encore l'ebook-edit qui vient avec Calibre.

Dans ton fichier (x)html, tu mets au bon endroit, pour la ligne horizontale:

Code:
 <hr />
et dans la css, par exemple:

Code:
hr {
    margin-right: 30%;
    margin-left: 30%;
    margin-bottom: .8em;
    margin-top: 1.4em;
}
De la sorte, la ligne de séparation (hr) sera centrée. Si tu veux que la <hr> soit alignée à gauche, mets margin-left: 0;, etc.

Pour le soulignement, par exemple:
Code:
Il était une fois, dans un <span class="soul">village</span> fort lointain....
Dans la css:

Code:
span.soul {
text-decoration: underline;
}
Tu peux toujours utiliser <u>mot à souligner</u>, mais pour des raisons sémantiques, l'utilisation de cet élément est déconseillé. (jettes un coup d'oeil ici: http://www.w3schools.com/tags/tag_u.asp) pour <u> et le reste.
En passant <span> est un attribut inline; il est appliqué à une portion de texte à l'intérieur d'un élément block (un paragraphe ou une <div>).

Finalement, n'oublie pas d'associer ton/tes fichiers (x)html avec la feuille de style, sinon cela ne marchera pas!
Arios is offline   Reply With Quote