![]() | |
![]() |
| | Thread Tools | Display Modes |
#21
| |||
| |||
|
|
li.one, li.two { list-style-image: url(arrow.png); padding: 1em; } li.two { padding-top: 1.4em; padding-bottom: 1.4em; } ul li class="one"><a href="doc-a.html">child a</a></li li class="one"><a href="doc-b.html">child b</a></li li class="two"><a href="doc-1.html">child 1</a></li /ul |
#22
| |||
| |||
|
|
What would you do if you needed to name "arrow.png" in order to specify its size or relative position? |
#23
| |||
| |||
|
|
"Haines Brown" <brownh (AT) teufel (DOT) hartford-hwp.com> wrote in message news:87brq6b2ws.fsf (AT) teufel (DOT) hartford-hwp.com... What would you do if you needed to name "arrow.png" in order to specify its size or relative position? More classes pointing to other sizes, perhaps. |
#24
| |||
| |||
|
|
?? My intent was to ask how such a class would be applied to the list item marker. Here's a simple example: li.list { list-style-image: url(arrow.png); padding: 1em; } ul li class="list"><a href="doc-a.html">document a</a></li li class="list"><a href="doc-b.html">document b</a></li /ul Now, suppose I want to shift the relative position of marker "arrow.png" in relation to the lines of text in the list, such as shifting it up a bit? Or perhaps I might want to reduce its size. I assume that to do this, "arrow.png" must somehow be assigned a class or ID, but I don't see how. |
#25
| |||
| |||
|
#26
| ||||||
| ||||||
|
|
I think you are telling me that there's no way to assign a class or id to a list marker, but rather I should redesign the graphic so that it has the desired attributes. |
|
You ask why I would want to mess with the qualities of the marker anyway. Well, the reason is that I needed to adjust the height of the marker in relation to the line it marks. |
|
I find that when I try to change the relative position of the line, it includes the marker. |
|
So I have to so something really ugly: |
|
I don't know that this is any improvement over my original approach, which was simply to start new lines in a paragraph with a <br /> and an image to consruct the appearance of an HTML list (I used the height attribute to bring the lines closer together than 1 em, so don't know why the value 1.4 works in practice.) |
|
Here was my original approach: p class="links" img class="arrow" src="arrow.png" / a href="doc-a.html">child a</a br / |
![]() |
| Thread Tools | |
| Display Modes | |
| |