Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 08-19-2019, 05:17 PM   #1
Pyjam
Zealot
Pyjam has become a pillar of the MobileRead communityPyjam has become a pillar of the MobileRead communityPyjam has become a pillar of the MobileRead communityPyjam has become a pillar of the MobileRead communityPyjam has become a pillar of the MobileRead communityPyjam has become a pillar of the MobileRead communityPyjam has become a pillar of the MobileRead communityPyjam has become a pillar of the MobileRead communityPyjam has become a pillar of the MobileRead communityPyjam has become a pillar of the MobileRead communityPyjam has become a pillar of the MobileRead community
 
Posts: 143
Karma: 15920
Join Date: Aug 2015
Device: Kindle Voyage
[Solved] Title with underline

How can I do an underline like in the picture?
(I'm a newbie)

Using «*text-decoration: underline*» doesn't produce a nice result like this with a thick line and a large gap between the text and the line.

Thank you.
Attached Thumbnails
Click image for larger version

Name:	screenshot_2019_08_19T22_40_57+0200.png
Views:	154
Size:	10.3 KB
ID:	173041  

Last edited by Pyjam; 08-19-2019 at 09:12 PM.
Pyjam is offline   Reply With Quote
Old 08-19-2019, 08:26 PM   #2
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
You could try HTML like
Code:
<h2><span class="decor">PREMIÈRE PARTIE</span></h2>
with CSS like
Code:
.decor {
    padding-bottom: 0.25em;
    border-bottom: 2px solid;
}
Adjust numeric values as desired for line thickness and padding between text and line.
jackie_w is offline   Reply With Quote
Advert
Old 08-19-2019, 09:11 PM   #3
Pyjam
Zealot
Pyjam has become a pillar of the MobileRead communityPyjam has become a pillar of the MobileRead communityPyjam has become a pillar of the MobileRead communityPyjam has become a pillar of the MobileRead communityPyjam has become a pillar of the MobileRead communityPyjam has become a pillar of the MobileRead communityPyjam has become a pillar of the MobileRead communityPyjam has become a pillar of the MobileRead communityPyjam has become a pillar of the MobileRead communityPyjam has become a pillar of the MobileRead communityPyjam has become a pillar of the MobileRead community
 
Posts: 143
Karma: 15920
Join Date: Aug 2015
Device: Kindle Voyage
Wonderful. Thanks a lot.
Pyjam is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to underline all <h2> tags? crankypants ePub 12 12-03-2015 01:17 PM
Useless without underline Quetzalcoatlus EPUBReader 0 04-12-2014 01:30 AM
Image links without underline slicknick001 Kindle Formats 17 12-20-2013 07:16 AM
Underline magavi Devices 5 06-21-2013 01:08 PM
Colored quotes -> underline Coruscatus Conversion 3 11-18-2012 07:30 PM


All times are GMT -4. The time now is 03:44 PM.


MobileRead.com is a privately owned, operated and funded community.