Register Guidelines E-Books Search Today's Posts Mark Forums Read

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
Member
shorshe began at the beginning.
 
Posts: 17
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
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
SD card firmware (1.4) image links for AU/NZ sabredog Kobo Reader 37 08-30-2013 03:52 PM
reading methods? ahammer Lounge 1 07-19-2009 02:51 PM
Payment methods for WHSmith.co.uk Croker Deals, Freebies, and Resources (No Self-Promotion) 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 05:55 AM.


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