View Single Post
Old 06-21-2017, 03:46 PM   #9
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,542
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
There are many ways to get what you want. Beside the previous answers, you can use something like the following:

1. In your .xhtml file

Code:
<h1>Title 1</h1>
<p class="border1">&nbsp;</p>

<h1>Title 2</h1>
<p class="border2">&nbsp;</p>
2. In your .css stylesheet

Code:
h1 {
    text-align: center;
    margin: 1em 0 0;
}

.border1 {
    height: 2px;
    border-top: 2px solid black;
    border-bottom: 2px solid black;
    margin: 0 25% 1em;
    width: 50%;
}

.border2 {
    height: 2px;
    background: black;
    margin: 0 25% 1em;
    width: 50%;
}
Here you can watch how it looks in Sigil:
Click image for larger version

Name:	Image1.png
Views:	255
Size:	99.6 KB
ID:	157449

Of course, you can change everything in the "border1" and "border2" classes (top margin, bottom margin, height (thickness of the line), background color, type of borders, border color, width of the lines, etc., etc.)

Regards
Rubén
RbnJrg is offline   Reply With Quote