06-16-2009, 08:50 AM | #1 |
Member
Posts: 18
Karma: 62
Join Date: Mar 2009
Device: none
|
css, non-repeating background image
Hello,
if I for example realize special list bullets by attaching a non-repeating background image to each list item of a list, then I have a display problem in ADE and Sony Reader. When a list bullet goes over to the next page, then on that next page the background image is repeated again, letting it look - in this case - as if another list item starts, while in reality the actual list item is just continued. This would apply to other elements that go over to the next page and have a non-repeating background image. Would there be any way to correct this? An alternative - as far as I see - would be to insert a specially classified span at the beginning of each item, and to define a background only for that span. Best regards, Christian Kirchhoff |
06-16-2009, 08:59 AM | #2 |
frumious Bandersnatch
Posts: 7,536
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
|
Advert | |
|
06-19-2009, 11:24 AM | #3 | |
Wizard
Posts: 1,213
Karma: 12890
Join Date: Feb 2009
Location: Amherst, Massachusetts, USA
Device: Sony PRS-505
|
Quote:
Code:
ul { list-style-image:url("mybullet.gif"); } I haven't checked how that looks in ADE or Sony Reader, but it seems like more "proper" CSS than using a non-repeating background image. Last edited by frabjous; 06-19-2009 at 11:27 AM. |
|
06-26-2009, 04:35 AM | #4 |
Member
Posts: 18
Karma: 62
Join Date: Mar 2009
Device: none
|
I didn't want to do that because of what is said in the following article:
http://css.maxdesign.com.au/listutor...troduction.htm "HTML bullets can be replaced with graphic images using "list-style-image". However, the placement of these images is inconsistent across most modern browsers. There is also very little control over how the bullets appear beside the list items." That's why I almost always use non-repeating background images. Best regards, Christian |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Image background in CSS not displaying on Kobo | shall1028 | ePub | 2 | 09-05-2010 07:30 AM |
Repeating Images after EPUB to RTF conversion | kerrware | Calibre | 1 | 07-15-2010 09:05 AM |
LRF to ePUB -- Remove Repeating Text | mshneour | Calibre | 14 | 05-03-2010 11:00 PM |
Can the Kindle avoid repeating the video-game crash of '83? | m-reader | News | 11 | 12-03-2009 01:35 PM |
Pdf background darker than LRF/RTF background | LOL2005 | Sony Reader | 2 | 10-23-2007 11:00 AM |