View Single Post
Old 04-20-2014, 10:10 AM   #12
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,833
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by Hitch View Post
@Ruben:

What's your media-query/fallback styling for the K7's, for that svg?

Hitch
Hi Hitch;

I really didn't think in a fallback for K7 since the OP wanted something for KF8. But now you mention it, I guess that the usual formula should work; something like:

Code:
@media amzn-kf8 {
.raised_cap1 {
   display: inline;
   width: auto;
   height: 4em;
}

.raised_cap2 {
   display: none;
}
}

@media amzn-mobi {
.raised_cap1 {
   display: none;
}

.raised_cap2 {
   font-weight: bold;
}
}
And in .xhtml file:

Code:
<h1>This is the title</h1>

  <p><img class="raised_cap1" alt="L" src="../Images/L.svg" /><span class="raised_cap2">L</span>orem ipsum dolor sit amet, consectetur adipiscing elit. Nulla ac tellus nunc. Phasellus imperdiet leo metus, et gravida lacus. Donec metus ligula, elementum at pellentesque pellentesque, suscipit ac nunc. Etiam lobortis, massa ac aliquam auctor, augue nisl sagittis urna, at dapibus tellus erat ullamcorper ligula.</p>
I didn't try the above solution but I think it should work

Regards
Rubén

EDIT: maybe we could find another solution by using a .gif image instead of a .svg one. In that case could be possible to have raised cap also in K7 (like the Amazon's ads).

Last edited by RbnJrg; 04-20-2014 at 10:13 AM.
RbnJrg is offline   Reply With Quote