Quote:
Originally Posted by larysa
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