View Single Post
Old 11-26-2013, 09:04 AM   #7
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,830
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
This solution (with partial use of SVG) also works in ADE:

In the stylesheet:

Code:
html {
    height: 100%; /* very important */
    margin: 0;
}

body {
    height: 100%;  /* very important */
    margin: 0;
}

.container {
    height: 25%;
    width: 80%;
    text-indent: 0;
    text-align: center;
    margin: 0 10%;  
    background: url("../Images/Image1.svg") center center no-repeat;
    background-size: contain;
    border: 2px solid blue;
}
In the .html file:

Code:
<div class="container">
    &nbsp;
</div>
As Image1.svg file:

Code:
<svg 
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:cc="http://creativecommons.org/ns#"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:svg="http://www.w3.org/2000/svg"
   xmlns="http://www.w3.org/2000/svg"
   version="1.1"
   width="600"
   height="200"
   id="svg3010">
  <text x="300" y="130" text-anchor="middle" fill="red" style="font-size: 100px; font-weight: bold">This is a title</text>
</svg>
This is as it looks in ADE:

Click image for larger version

Name:	ADE1.jpg
Views:	244
Size:	51.2 KB
ID:	115793

Regards
Rubén
Attached Files
File Type: epub Text with proportional size.epub (2.6 KB, 188 views)
RbnJrg is offline   Reply With Quote