View Single Post
Old 02-05-2015, 04:40 AM   #25
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,738
Karma: 24031403
Join Date: Dec 2010
Device: Kindle PW2
@Macsurfcat: AFAIK, Kindle media queries usually need to be used in pairs (amzn-mobi and amzn-kf8) to work as designed.

For example, the following works fine:

Code:
@media amzn-mobi {
    span.firstletter {
        font-size: 3em;
        font-weight: bold;
        color: teal;
    }
}

@media amzn-kf8 {
    span.firstletter {
        font-family: sans-serif;
        float: left;
        font-size: 4em;
        font-weight: bold;
        margin-top: -0.2em;
        margin-bottom: -0.2em;
        margin-right: 5px;
        color: red;
    }
}
Code:
<h3>Media query test</h3>

<p><span class="firstletter">L</span>orem ipsum dolor sit amet, consectetur adipiscing elit.</p>
Attached Thumbnails
Click image for larger version

Name:	mq_azw3.png
Views:	372
Size:	6.0 KB
ID:	134529   Click image for larger version

Name:	mq_mobi7.png
Views:	373
Size:	4.9 KB
ID:	134530  
Doitsu is offline   Reply With Quote