Thread: Rotating text
View Single Post
Old 07-07-2015, 04:43 PM   #6
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,801
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by kamanza View Post
After experimenting with the SVG, I had to use the images after all for 2 reasons:
1) Each chapter number needs a separate SVG wrapper with different values - as many as images - and more importantly,
2)Text in Svg has absolute dimensions & doesn't change with the font size changes in the main text, whereas image size can be expressed in 'em', scaling them with the main text.
You can get relative size also with .svg images (that is, when the font size changes, the .svg image also changes). Below I attach a new epub; watch the changes I made to the code (now the class "float_left" is applied to the <img> tag instead of the <p> tag and I gave the class "float_left" new properties -width, height and font-size).

Regards
Rubén
Attached Files
File Type: epub Rotate Text for ADE (relative size).epub (3.0 KB, 341 views)
RbnJrg is offline   Reply With Quote