View Single Post
Old 07-29-2018, 03:04 AM   #1
fren45
Junior Member
fren45 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jul 2018
Device: Ipad Air, E-pub
Underlined Text not changing to italics

Hello everyone, so I am rather new to this, especially working with calibre. Currently, I am editing an ebook and am trying to change underlined text to italics, for things such as internal dialogue. However, every time I have tried adding italics in the text, or adding the css code on the stylesheets, it only removes the underline, but never adds italics. Any help would be greatly appreciated.

Below is what the code and text looks like originally, and then when I change it.
Thanks again.


CSS Stylesheet

.calibre7 {
display: block
}
.scenebreak {
display: block;
page-break-before: avoid;
text-align: center;
text-indent: 0%;
padding: 0;
margin: 1em 0
}
.text_ {
text-decoration: underline
}
.whitespace {
display: block;
text-align: center;
padding: 0;
margin: 3.5em 0 0
}


Text in book,

...child listened to their instructions.</span></p>
<p class="block_1"><span class="text_">Oh please,</span><span class="calibre2"> felt himself mutter in a half-conscious prayer. He was not a religious man, but this was his final opportunity. He had failed so many times before . . . </span></p>

...child listened to their instructions.
Oh please, felt himself mutter in a half-conscious prayer. He was not a religious man, but this was his final opportunity. He had failed so many times before . . .


Edited CSS Stylesheet

.calibre7 {
display: block
}
.scenebreak {
display: block;
page-break-before: avoid;
text-align: center;
text-indent: 0%;
padding: 0;
margin: 1em 0
}
.ital {
font-style: italic
}
.whitespace {
display: block;
text-align: center;
padding: 0;
margin: 3.5em 0 0
}


Text after edit

child listened to their instructions.</span></p>
<p class="block_1"><span class="text_">Oh please,</span><span class="calibre2"> felt himself mutter in a half-conscious prayer. He was not a religious man, but this was his final opportunity. He had failed so many times before . . . </span></p>

...child listened to their instructions.
Oh please, felt himself mutter in a half-conscious prayer. He was not a religious man, but this was his final opportunity. He had failed so many times before . . .




Thanks again for any help.
fren45 is offline   Reply With Quote