Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 05-27-2009, 06:58 AM   #1
ckirchho
Member
ckirchho is on a distinguished road
 
Posts: 18
Karma: 62
Join Date: Mar 2009
Device: none
Links: Image replacement methods

Hello,

are there any CSS methods for image replacement that work for epub files?

I tried something like:
a {
background: url(images/linkArrow.png) no-repeat left center;
display: block;
float: left;
height: 14px;
text-indent: -5000px;
width: 14px;
}

which lets the image appear and the text disappear, but unfortunately the link is not working anymore (in ADE). I guess Digital Editions (and maybe the Sony Reader, too) moves the "hot area" of that link together with the text outside of the screen.

I tried as well:
a {
background: url(images/linkArrow.png) no-repeat left center;
display: block;
float: left;
height: 14px;
overflow: hidden;
padding-top: 16px;
width: 14px;
}

Without "overflow: hidden;" the image appeared, but the text that is pushed down by the padding-top was visible as well. But with "overflow: hidden;" the arrow and the topmost part of the link text disappear and only the lower portion of the text are visible.

For now I will have to insert the images directly into the links and delete the text. For future versions of course I would like to do this with CSS, because the way the link text is still there, only invisible.

But is there a CSS method that works in ADE and Sony Reader?

Best regards,

Christian Kirchhoff
ckirchho is offline   Reply With Quote
Old 10-22-2012, 04:54 AM   #2
shorshe
Enthusiast
shorshe began at the beginning.
 
shorshe's Avatar
 
Posts: 28
Karma: 10
Join Date: Aug 2012
Location: Munich, Germany
Device: iPad
Any Luck?

Hi!

Did you happen to find a working solution?
shorshe is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
SD card firmware (1.4) image links for AU/NZ sabredog Kobo Reader 42 03-27-2015 03:11 AM
reading methods? ahammer Lounge 1 07-19-2009 02:51 PM
Payment methods for WHSmith.co.uk Croker Deals and Resources (No Self-Promotion or Affiliate Links) 38 04-21-2009 06:33 PM
mybebook.com payment methods? dcalder HanLin eBook 2 01-07-2009 07:57 PM


All times are GMT -4. The time now is 04:06 AM.


MobileRead.com is a privately owned, operated and funded community.