|
|
#16 | |
|
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,571
Karma: 20150435
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
It will only prevent it as long as the reader obeys the CSS (which is not only the case). You can also use an SVG wrapper for the cover, the code for which you can find elsewhere in the forum. |
|
|
|
|
|
|
#17 |
|
Village idiot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 157
Karma: 519566
Join Date: Mar 2014
Location: Belgium
Device: sony PRS T-1
|
@Jelby
I'm just trying to get the .gif to scale along when you change font-size on a reader. The code: Code:
.stroke {
display: block;
margin-top: 1.35em;
text-indent:0em;
text-align:center;
}
Code:
<p class="stroke">
<img src="Stroke2.gif" alt="Afbeelding"/>
</p>
Code:
<div>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
width="100%" height="100%" viewBox="0 0 2480 3508"
preserveAspectRatio="xMidYMid meet">
<image width="2480" height="3508" xlink:href="cover.jpg"/>
</svg>
</div>
</body>
</html>
|
|
|
|
| Advert | |
|
|
|
|
#18 |
|
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,571
Karma: 20150435
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Try adding this CSS:
Code:
.stroke img {
width: 5em; /*or whatever is appropriate */
}
Code:
<p class="stroke">
<img src="Stroke1.gif" alt="Afbeelding" id="img1"/>
</p>
<p class="stroke">
<img src="Stroke2.gif" alt="Afbeelding" id="img2"/>
</p>
Code:
img#img1 {
width: 3em;
}
img#img2 {
width: 5em;
}
|
|
|
|
|
|
#19 |
|
Village idiot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 157
Karma: 519566
Join Date: Mar 2014
Location: Belgium
Device: sony PRS T-1
|
Yes! That works, thank you.
I changed "afbeelding" to break, cause that's what it's supposed to be, a scene break. |
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| BUG in PDF Reader - TeX math displaying | ereus | Onyx Boox | 9 | 02-06-2014 02:55 PM |
| Aldiko ebook reader not displaying CSS attributes | ebookn00b | Android Devices | 3 | 01-17-2013 04:20 PM |
| Gif images not showing in epub | Amalthia | Conversion | 9 | 06-07-2012 04:43 PM |
| Just change the screensaver GIF files? | namati | Kindle Developer's Corner | 3 | 02-26-2012 12:40 AM |
| My nook hates my .gif files. | EricDP | ePub | 7 | 09-09-2010 11:19 AM |