View Single Post
Old 03-11-2020, 01:49 PM   #4
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,123
Karma: 60406498
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by larysa View Post
move to epub? this it is not editor section? and therefore it seems to me the correct one!
anyway i've find this solution:
<div style="height: 40px; background-color: #C1C3C3"></div>

but please, write one example with your explicit code....
This IS the Calibre editor section. It is about using the Editor functionally, not Coding in general.

XHTML
Code:
<div class="blubox">
<p class= "boxtext"> text here</p>
<p class= "boxtext"> more text here</p>
</div>
CSS
Code:
.blubox { margin: 1em 2em; padding: 20px; background-color:"C1C3C3"}
.boxtext { margin: .5em 0; color: white; }
The box height sizes to contain the contents + the padding.
I put some side margin on the box so it does not touch the page edges
theducks is offline   Reply With Quote