|
Convenient web based access to our favorite web design Usenet groups
|
 |
This is Interesting: Free Magazines for Graphics designers and webmasters
| Author |
| Thread |
 |
|
|
|
|
|
 |
 |
|
|
 |
|
|
 |
|
|
 |
 |
Re: list marker attributes (was: col element in table not working) |
 |
|
 |
|
|
|
  12-22-03 - 09:29 PM
|
"Haines Brown" <brownh@teufel.hartford-hwp.com> wrote in message
news:87zndl86kn.fsf@teufel.hartford-hwp.com...quote:
> 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.
Well, what I'm trying to say is that the bullets on lists are supposed to
function in a particular way. The only sure and meaningful way to defeat
that is to specify a different bullet.
quote:
> 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.
My next question: why do you need to change the relative position of a line?
What I'm driving at is there must be some meaning to the user as to why
you're doing this. What's the context in terms of the content that's being
presented?
quote:
> I find that when I try to
> change the relative position of the line, it includes the marker.
? In IE and Opera list items have their positions changed but the bullet
stays put. As some of your list items need to be positioned high, and some
regular, do this.
li.normal {
list-style-image: url(arrow.png);
height: 1.4em;
}
li.special {
position: relative;
top: -0.3em;
list-style-image: url(higharrow.png);
}
and the image matches. We're talking bullets here, not terribly wasteful of
bandwidth. You could have a dozen different ones and it would be noticed
only on the poorest of connections.
quote:
> So I
> have to so something really ugly:
It is a little ugly, but you are trying to do something totally
quote:
> 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.)
The improvement is that this actually is a list. If you can mark up your
text as what it actually is, and not resort to HTML witchcraft to achieve a
visual effect which should be done in the CSS, it's an improvement. And
since there's some contextual purpose for adjusting the height of a line AND
its bullet, and since a bullet is not moved with its text in the user agent,
the only option to preserve meaningful markup and create the desired visual
effect is to supply a bullet that is pre-adjusted to your visual effect. The
only ugly part is that you need to design a class for each separate type of
position modfication you plan to do - but since each element is being
positioned for a basic contextual reason, it's actually not ugly, it's
meaningful and worthwhile.
If you're not aiming toward visual layout to enhance meaning, but simply
taking a Dadaist approach to the page layout without respect to matching
design to communication of the text, then I cannot help you.
quote:
> Here was my original approach:
>
> <p class="links">
> <img class="arrow" src="arrow.png" />
> <a href="doc-a.html">child a</a>
> <br />
|
|
|
| [
Post Follow-Up to this message ]
|
|
|
|
|
 |
|
|
 |
| All times are GMT. The time now is 10:57 PM. |
 |
|
|
|
|
|  |
|