View Full Version : Background picture in epub?


Montyp535
11-14-2011, 05:27 PM
Hi there,

I have a problem with a book - there is a page with a handwritten letter on crosslined paper. in rtf/doc and pdf no problem to set a picture with the "lines" in the background of the text.
But how can I do this in epub? In html it works with the "background-image" and the followed orders for repeating... - Can I define a <div>-tag with the properties and can get handwritten text (works with the used font) on lines "epub-paper"? I thought, I can use a single line and let it "repeat", as far as the text needed.

a sample:
http://img40.imageshack.us/img40/9315/zwischenablage01dxg.jpg (http://imageshack.us/photo/my-images/40/zwischenablage01dxg.jpg/)

hernep
11-15-2011, 01:28 PM
You could try something like below, to get background image. Works at ADE, somehow. Needs some tweaking, tho.

body {
background-image: url(../Images/graph.jpg);
background-repeat: repeat;
margin: 0 0 0 0;
}