parent selector? | |
In order to mark links leaving my site, I recently added this rule to my
stylesheet.
A[href][class="offsite"]:after { content: "\2197" }
The character is a northeast-pointing arrow, since that seems to be
fairly common notation for this. I wanted to avoid using an image,
though, and this content rule works great!
My problem is that some of my offsite links are graphics. I don't want
an arrow hanging off my button links. Is it possible to disable this
rule somehow, or change the content back to "", if the anchor contains
an image? I know there is a child selector A>IMG but that selects the
image not the anchor. It seems I need a parent selector, and there is
no A<IMG equivalent.
Am I missing something obvious?
Thanks,
Tim
--
Tim & Alethea www.ChristTrek.org | | | | re: parent selector?
On Tue, 12 Oct 2004 09:43:39 -0500, Tim & Alethea Larson
<thelarsons@ll.net> wrote:
[color=blue]
> In order to mark links leaving my site, I recently added this rule to my
> stylesheet.
>
> A[href][class="offsite"]:after { content: "\2197" }
>
>
> The character is a northeast-pointing arrow, since that seems to be
> fairly common notation for this. I wanted to avoid using an image,
> though, and this content rule works great!
>
> My problem is that some of my offsite links are graphics. I don't want
> an arrow hanging off my button links. Is it possible to disable this
> rule somehow, or change the content back to "", if the anchor contains
> an image? I know there is a child selector A>IMG but that selects the
> image not the anchor. It seems I need a parent selector, and there is
> no A<IMG equivalent.
>
> Am I missing something obvious?[/color]
Assuming all the img anchors are in one section of the page, enclose them
in a div with an id. Then use that id as the parent. | | | | re: parent selector?
Tim & Alethea Larson <thelarsons@ll.net> wrote:
[color=blue]
>In order to mark links leaving my site, I recently added this rule to my
>stylesheet.
>
>A[href][class="offsite"]:after { content: "\2197" }
>
>The character is a northeast-pointing arrow, since that seems to be
>fairly common notation for this. I wanted to avoid using an image,
>though, and this content rule works great![/color]
It doesn't, the glyph you are using is not present on my system.
[color=blue]
>My problem is that some of my offsite links are graphics. I don't want
>an arrow hanging off my button links. Is it possible to disable this
>rule somehow, or change the content back to "", if the anchor contains
>an image? I know there is a child selector A>IMG but that selects the
>image not the anchor. It seems I need a parent selector, and there is
>no A<IMG equivalent.
>
>Am I missing something obvious?[/color]
a.offsite:after{content:"somethingappropriate"}
<a href="http://localhost/" class="offsite">foobar</a>
<a href="http://localhost/"><img src="foobar" alt="foobar"></a>
<a href="index.htm">foobar</a>
--
Spartanicus | | | | re: parent selector?
Tim & Alethea Larson wrote:[color=blue]
> In order to mark links leaving my site, I recently added this rule to
> my stylesheet.
>
> A[href][class="offsite"]:after { content: "\2197" }[/color]
You can also use
A.offsite[href]:after {}
which you might find easier to read. Better still,
A.offsite:after {}
assuming you have no <A> elements used as target anchors. I use id for
that, so there are no <A> elements in my page without an href attribute.
The drawback is that Netscape 4- will not recognize id for targets. But
its usage is low enough for me that I don't fret about target failures. :-)
[color=blue]
> The character is a northeast-pointing arrow, since that seems to be
> fairly common notation for this. I wanted to avoid using an image,
> though, and this content rule works great![/color]
On Opera and Moz, possibly Safari and others, sure. But you do know it
fails on MSIE, right?
[color=blue]
> My problem is that some of my offsite links are graphics. I don't
> want an arrow hanging off my button links. Is it possible to disable
> this rule somehow, or change the content back to "", if the anchor
> contains an image?[/color]
Spartanicus gave you the easiest solution: remove the class "offsite"
from links with images. If you want to keep that class for other
reasons, you can also use multiple classes:
<a href="samesite.html">this link has no icon after it</a>
<a href="http://www.example.com/bar" class="offsite">this link has a
nifty icon to show that it goes offsite</a>
<a href="http://www.example.com/foo" class="offsite withImg"><img
src="foobar.png" alt="this link does *not* have an icon after it"></a>
A.offsite:after {content:"arrow"}
A.offsite.withImg:after {content: ""}
[color=blue]
> I know there is a child selector A>IMG but that selects the image not
> the anchor. It seems I need a parent selector, and there is no A<IMG
> equivalent.[/color]
Correct, there is no parent selector in css 2.
--
Brian (remove "invalid" to email me) http://www.tsmchughs.com/ | | | | re: parent selector?
Neal wrote:
[color=blue]
> Assuming all the img anchors are in one section of the page, enclose
> them in a div with an id. Then use that id as the parent.[/color]
No, they could be anywhere.
Tim
--
Tim & Alethea www.ChristTrek.org | | | | re: parent selector?
Spartanicus wrote:
[color=blue]
>It doesn't, the glyph you are using is not present on my system.
>
>[/color]
Actually the rule works fine, it's your browser/system that's not up to
par. ;)
[color=blue]
>a.offsite:after{content:"somethingappropriate"}
>
><a href="http://localhost/" class="offsite">foobar</a>
><a href="http://localhost/"><img src="foobar" alt="foobar"></a>
><a href="index.htm">foobar</a>
>[/color]
You seem to be suggesting I remove the class if the anchor has an image.
That changes the semantics of what I'm doing. The link _is_ offsite,
whether it's text or image, and I should be able to mark it as such. I
don't put classes on things just because I want to hang a style on them,
I put classes on things because it means something. Having
distinguishing styles based on those classes to give a visual cue to the
reader is a nice side-effect.
Tim
--
Tim & Alethea www.ChristTrek.org | | | | re: parent selector?
Brian wrote:
[color=blue]
> Tim & Alethea Larson wrote:
>[color=green]
>> A[href][class="offsite"]:after { content: "\2197" }[/color]
>
>
> You can also use
>
> A.offsite[href]:after {}[/color]
..offsite is equivalent to class~="offsite", which is not the same as my
rule. I purposely want to not match anchors with more than one class,
which possibly (probably) have some other style by virtue of those other
classes.
[color=blue]
> A.offsite:after {}
>
> assuming you have no <A> elements used as target anchors. I use id for
> that, so there are no <A> elements in my page without an href attribute.
> The drawback is that Netscape 4- will not recognize id for targets. But
> its usage is low enough for me that I don't fret about target
> failures. :-)[/color]
You're probably right that the [href] is unnecessary in this case. I
started by copying another anchor rule.
[color=blue][color=green]
>> The character is a northeast-pointing arrow, since that seems to be
>> fairly common notation for this. I wanted to avoid using an image,
>> though, and this content rule works great![/color]
>
>
> On Opera and Moz, possibly Safari and others, sure. But you do know it
> fails on MSIE, right?[/color]
I'm not overly concerned about broken browsers. ;) Seriously though,
that is acceptable behavior. IE doesn't try to implement the rule and
do it wrong, it is just ignoring it. It wouldn't be the first time that
IE users get a substandard experience.
[color=blue]
> Spartanicus gave you the easiest solution: remove the class "offsite"
> from links with images. If you want to keep that class for other
> reasons, you can also use multiple classes:
>
>
> <a href="samesite.html">this link has no icon after it</a>
>
> <a href="http://www.example.com/bar" class="offsite">this link has a
> nifty icon to show that it goes offsite</a>
>
> <a href="http://www.example.com/foo" class="offsite withImg"><img
> src="foobar.png" alt="this link does *not* have an icon after it"></a>
>
>
> A.offsite:after {content:"arrow"}
>
> A.offsite.withImg:after {content: ""}[/color]
I shouldn't have to attach a class that says it has an image or not.
This should be apparent from the document tree. It appears that CSS
just has no way of accessing this particular information. Neither
should I have to remove the offsite class. It _is_ an offsite link
whether it is text or graphical, and by removing the class I remove that
meaning.
[color=blue][color=green]
>> I know there is a child selector A>IMG but that selects the image not
>> the anchor. It seems I need a parent selector, and there is no A<IMG
>> equivalent.[/color]
>
>
> Correct, there is no parent selector in css 2.[/color]
Major bummer.
Thanks,
Tim
--
Tim & Alethea www.ChristTrek.org | | | | re: parent selector?
Tim & Alethea Larson <thelarsons@ll.net> wrote:
[color=blue][color=green]
>>a.offsite:after{content:"somethingappropriate" }
>>
>><a href="http://localhost/" class="offsite">foobar</a>
>><a href="http://localhost/"><img src="foobar" alt="foobar"></a>
>><a href="index.htm">foobar</a>
>>[/color]
>
>You seem to be suggesting I remove the class if the anchor has an image.
> That changes the semantics of what I'm doing. The link _is_ offsite,
>whether it's text or image, and I should be able to mark it as such. I
>don't put classes on things just because I want to hang a style on them,
>I put classes on things because it means something. Having
>distinguishing styles based on those classes to give a visual cue to the
>reader is a nice side-effect.[/color]
So? Change the class name.
--
Spartanicus | | | | re: parent selector?
Tim & Alethea Larson wrote:[color=blue]
> Brian wrote:
>[color=green]
>> Spartanicus gave you the easiest solution: remove the class
>> "offsite" from links with images. If you want to keep that class
>> for other reasons, you can also use multiple classes:[/color]
>
>
> I shouldn't have to attach a class that says it has an image or not.[/color]
Whether you should or should not, I'm afraid you'll have to.
[color=blue]
> This should be apparent from the document tree. It appears that CSS
> just has no way of accessing this particular information.[/color]
Correct. Those who wrote the spec might have good reasons for that --
perhaps a parent selector would cost too much in processing overhead.
You'd have to ask them to get a better answer.
There's lots that we can't do without resorting to class, due to
shortcomings in MSIE, the dominant browser. Two fairly straightforward ones:
foo[id] {}
foo > bar {}
And lots more. My code would be a bit more readable if it weren't for
that os component we all love to hate.
[color=blue]
> Neither should I have to remove the offsite class. It _is_ an
> offsite link whether it is text or graphical, and by removing the
> class I remove that meaning.[/color]
What meaning is that? Your classname only has meaning to you. No ua will
use it; no ua can use it, since it's your namespace. I think you're not
seeing the big picture.
--
Brian (remove "invalid" to email me) | | | | re: parent selector?
Tim & Alethea Larson wrote:[color=blue]
> The character is a northeast-pointing arrow, since that seems to be
> fairly common notation for this. I wanted to avoid using an image,
> though, and this content rule works great![/color]
Why do you want to avoid using an image?
I'm no CSS expert, and this may require changes to your html, but this works
well for me:
a.offsite span.linkText {
padding-right:24px;
background-image:url(/offsite.gif);
background-repeat:no-repeat;
background-position:center right;
}
<a class="offsite" href="site"><span class="linkText">Offsite!</span></a>
Just a thought.
--
Matt Kruse http://www.JavascriptToolbox.com | | | | re: parent selector?
Matt Kruse wrote:
[color=blue]
>Why do you want to avoid using an image?
>
>[/color]
Why should I use an image? There's no compelling reason, so I'd just as
soon save a little bandwidth.
Tim
--
Tim & Alethea www.ChristTrek.org | | | | re: parent selector?
Brian wrote:
[color=blue][color=green]
>> I shouldn't have to attach a class that says it has an image or not.[/color]
>
>
> Whether you should or should not, I'm afraid you'll have to.[/color]
Only if "look" is more important than substance. In my case it isn't.
[color=blue][color=green]
>> This should be apparent from the document tree. It appears that CSS
>> just has no way of accessing this particular information.[/color]
>
>
> Correct. Those who wrote the spec might have good reasons for that --
> perhaps a parent selector would cost too much in processing overhead.
> You'd have to ask them to get a better answer.[/color]
Hmm, that's a possibility. I wonder if I dig around the W3 I can find
out who was on that working group.
[color=blue]
> There's lots that we can't do without resorting to class, due to
> shortcomings in MSIE, the dominant browser. Two fairly straightforward
> ones:
>
> foo[id] {}
>
> foo > bar {}
>
> And lots more. My code would be a bit more readable if it weren't for
> that os component we all love to hate.[/color]
I'm glad I don't bother with IE.
[color=blue][color=green]
>> Neither should I have to remove the offsite class. It _is_ an
>> offsite link whether it is text or graphical, and by removing the
>> class I remove that meaning.[/color]
>
>
> What meaning is that? Your classname only has meaning to you. No ua will
> use it; no ua can use it, since it's your namespace. I think you're not
> seeing the big picture.
>[/color]
I am seeing the big picture. My markup is meaningful. I shouldn't have
to clutter it up for solely stylistic reasons when the HTML that's there
says everything that needs to be said. Might as well go back to FONT
tags if we're going that direction.
Tim
--
Tim & Alethea www.ChristTrek.org | | | | re: parent selector?
Tim & Alethea Larson wrote:
[color=blue]
> I shouldn't have to clutter it up for solely stylistic reasons when
> the HTML that's there says everything that needs to be said. Might
> as well go back to FONT tags if we're going that direction.[/color]
Nothing like overstating your case by exageration.
--
Brian (remove "invalid" to email me) | | | | re: parent selector?
Tim & Alethea Larson wrote:
[color=blue]
> I shouldn't have to clutter it up for solely stylistic reasons when
> the HTML that's there says everything that needs to be said. Might
> as well go back to FONT tags if we're going that direction.[/color]
Nothing like overstating your case by exaggeration.
--
Brian (remove "invalid" to email me) | | | | re: parent selector?
Tim & Alethea Larson wrote;[color=blue]
> In order to mark links leaving my site, I recently added this rule to my
> stylesheet.
>
> A[href][class="offsite"]:after { content: "\2197" }
>
>
> The character is a northeast-pointing arrow, since that seems to be
> fairly common notation for this. I wanted to avoid using an image,
> though, and this content rule works great![/color]
I think that most people would guess that you intend to open these links
in new window. As you are not doing that, it is confusing. (If you are
doing that, don't - it is annoying and does not help anybody)
[color=blue]
> It seems I need a parent selector[/color]
IIANM, it is planned on CSS3.
[color=blue]
> Am I missing something obvious?[/color]
An marker that shows link is offsite, is content, not style. A person
using non CSS browser would like to see it too.
--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts> | | | | re: parent selector?
"Tim & Alethea Larson" <thelarsons@ll.net> wrote in
comp.infosystems. www.authoring.stylesheets:[color=blue]
>A[href][class="offsite"]:after { content: "\2197" }
>
>
>The character is a northeast-pointing arrow, since that seems to be
>fairly common notation for this. I wanted to avoid using an image,
>though, and this content rule works great![/color]
If "works great!" means "works on your system", then yes. As others
have tried to tell you, you're assuming that every visitor to your
site has a font available that contains that glyph -- and that's an
extremely bad assumption.
--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/ | | | | re: parent selector?
Stan Brown wrote:
[color=blue]
>If "works great!" means "works on your system", then yes. As others
>have tried to tell you, you're assuming that every visitor to your
>site has a font available that contains that glyph -- and that's an
>extremely bad assumption.
>
>[/color]
No, it does work great. Assuming every visitor had some functionality
that is critical to get a normal experience out of the site would be a
bad assumption. The link still works either way; knowing the link is
offsite is hardly critical behavior or knowledge. For those that have
it, it's a nice additional perk. For those that don't, they aren't
missing much. The worst that can happen is the rule will work but the
glyph be unavailable - hardly catastrophic. This sounds like a
near-perfect example of designing for graceful degradation in my opinion.
Y'all must think I'm new here, just because I haven't posted much in
three years. Your advice would be better spent on someone using
absolute font sizes or designing for fixed browser widths.
Tim
--
Tim & Alethea www.ChristTrek.org | | | | re: parent selector?
Lauri Raittila wrote:
[color=blue]
>Tim & Alethea Larson wrote;
>[color=green]
>>It seems I need a parent selector
>>
>>[/color]
>
>IIANM, it is planned on CSS3.
>
>[/color]
If you could find a reference I'd appreciate it. I tried reading
through the candidate selector recommendation for CSS3 but didn't spot it.
[color=blue]
>An marker that shows link is offsite, is content, not style. A person
>using non CSS browser would like to see it too.
>
>[/color]
I have the "marker" in content, as a class. I'm using style to make
that visible to the user.
Tim
--
Tim & Alethea www.ChristTrek.org | | | | re: parent selector?
Tim & Alethea Larson wrote;[color=blue]
> Lauri Raittila wrote:
>[color=green]
> >Tim & Alethea Larson wrote;
> >[color=darkred]
> >>It seems I need a parent selector[/color][/color][/color]
[color=blue]
> If you could find a reference I'd appreciate it. I tried reading
> through the candidate selector recommendation for CSS3 but didn't spot it.[/color]
I read about it on mailing www-style mailing list, it seems to never had
made to CR.
Sun, 4 May 2003 15:17:08 +1000 (EST)
From: Michael Day <mikeday@yeslogic.com:
|> i can't see (with css3 selectors) how to select a paragraph
|>containing, say a defining instance of a term.
|
|CSS3 Selectors does not have a parent combinator, although many people
|seem to have suggested such a thing.
|
|Ian Hickson's proposal is probably the closest to what you want:
|
|p:has(dfn) { ... }
I can't find Ians orginal proposal atm, it is propably older than my
archive, try looking online arhive if interested.
[color=blue]
> I have the "marker" in content, as a class. I'm using style to make
> that visible to the user.[/color]
But, you could use some other way to mark up the content, and it would
not be wrong.
--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts> | | | | re: parent selector?
On Mon, 18 Oct 2004 06:45:52 -0500, Tim & Alethea Larson
<thelarsons@ll.net> wrote:
[color=blue]
> The worst that can happen is the rule will work but the glyph be
> unavailable - hardly catastrophic.[/color]
What will appear? I have no idea. Do you? Maybe ? | | | | re: parent selector?
Neal wrote;[color=blue]
> On Mon, 18 Oct 2004 06:45:52 -0500, Tim & Alethea Larson
> <thelarsons@ll.net> wrote:
>[color=green]
> > The worst that can happen is the rule will work but the glyph be
> > unavailable - hardly catastrophic.[/color]
>
> What will appear? I have no idea. Do you? Maybe ?[/color]
I think it will be just as useful as arrow, both confuse user, and help
no-one...
--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts> | | | | re: parent selector?
On Mon, 18 Oct 2004 21:10:07 +0300, Lauri Raittila
<lauri@raittila.cjb.net> wrote:
[color=blue]
> Neal wrote;[color=green]
>> On Mon, 18 Oct 2004 06:45:52 -0500, Tim & Alethea Larson
>> <thelarsons@ll.net> wrote:
>>[color=darkred]
>> > The worst that can happen is the rule will work but the glyph be
>> > unavailable - hardly catastrophic.[/color]
>>
>> What will appear? I have no idea. Do you? Maybe �?[/color]
>
> I think it will be just as useful as arrow, both confuse user, and help
> no-one...
>[/color]
The real question is - do we really need to mark links that are on- or
off-site? Is it relevant to the user?
My answer is no, it's generally not. I find these little off-site icons
horribly distracting in reading the text. If you have a list of links,
sure, organize them as on- and off-site, but the little icon isn't really
needed. | | | | re: parent selector?
JRS: In article <opsf2vxcv86v6656@news.individual.net>, dated Mon, 18
Oct 2004 14:21:02, seen in news:comp.infosystems. www.authoring.styleshee
ts, Neal <neal413@yahoo.com> posted :[color=blue]
>
>The real question is - do we really need to mark links that are on- or
>off-site? Is it relevant to the user?[/color]
In an informational site, it is. It's useful for a reader to be able to
see whether a link is to other work by the same author, or to an
independent source of information.
It's also useful, especially for intermittently-connected readers, to be
able to see whether a link is to elsewhere on the same page or to
another page.
I'd like to see that done automatically (by default), using text-
decoration dependent on the form of the href parameter - say full
underline as at present for links to other sites, dashed underline for
relative links to different pages, and dotted underline for within-page
links.
[color=blue]
>My answer is no, it's generally not. I find these little off-site icons
>horribly distracting in reading the text. If you have a list of links,
>sure, organize them as on- and off-site, but the little icon isn't really
>needed.[/color]
--
John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 MIME.
Web <URL:http://www.merlyn.demon.co.uk/> - FAQish topics, acronyms, & links.
Plaintext, quoting : see <URL:http://www.usenet.org.uk/ukpost.html>
Do not Mail News to me. Before a reply, quote with ">" or "> " (SoRFC1036) | | | | re: parent selector?
On Tue, 19 Oct 2004 13:18:35 +0100, Dr John Stockton
<spam@merlyn.demon.co.uk> wrote:
[color=blue]
> JRS: In article <opsf2vxcv86v6656@news.individual.net>, dated Mon, 18
> Oct 2004 14:21:02, seen in news:comp.infosystems. www.authoring.styleshee
> ts, Neal <neal413@yahoo.com> posted :[color=green]
>>
>> The real question is - do we really need to mark links that are on- or
>> off-site? Is it relevant to the user?[/color]
>
> In an informational site, it is. It's useful for a reader to be able to
> see whether a link is to other work by the same author, or to an
> independent source of information.[/color]
<p>Please refer to <a href="http://example.com/foo/">example.com's foo
pages</a>. (A <a href="foosummary.html">summary of foo</a> is available on
this site.)</p>
Context is better than an ugly icon which fails on many setups.
[color=blue]
> It's also useful, especially for intermittently-connected readers, to be
> able to see whether a link is to elsewhere on the same page or to
> another page.[/color]
Well, for the HTML-savvy, the status bar will normally reveal the link's
destination, and you can verify it yourself. For the uninitiated, context
can again be used.
[color=blue]
> I'd like to see that done automatically (by default), using text-
> decoration dependent on the form of the href parameter - say full
> underline as at present for links to other sites, dashed underline for
> relative links to different pages, and dotted underline for within-page
> links.[/color]
If it were to be done, this would be the appropriate way to handle it.
There's no sense in everyone doing this differently, it will serve only to
confuse the user. Sadly, it's not, which means there's not going to be a
reliable way to do this which all users will understand.
The goal is noble, but the practicality is a mess. | | | | re: parent selector?
JRS: In article <opsf4qanh26v6656@news.individual.net>, dated Tue, 19
Oct 2004 14:14:37, seen in news:comp.infosystems. www.authoring.styleshee
ts, Neal <neal413@yahoo.com> posted :[color=blue]
>On Tue, 19 Oct 2004 13:18:35 +0100, Dr John Stockton
><spam@merlyn.demon.co.uk> wrote:
>[color=green]
>> JRS: In article <opsf2vxcv86v6656@news.individual.net>, dated Mon, 18
>> Oct 2004 14:21:02, seen in news:comp.infosystems. www.authoring.styleshee
>> ts, Neal <neal413@yahoo.com> posted :[color=darkred]
>>>
>>> The real question is - do we really need to mark links that are on- or
>>> off-site? Is it relevant to the user?[/color]
>>
>> In an informational site, it is. It's useful for a reader to be able to
>> see whether a link is to other work by the same author, or to an
>> independent source of information.[/color]
>
><p>Please refer to <a href="http://example.com/foo/">example.com's foo
>pages</a>. (A <a href="foosummary.html">summary of foo</a> is available on
>this site.)</p>
>
>Context is better than an ugly icon which fails on many setups.[/color]
I mentioned no icon.
It is not always - indeed often not - convenient to mingle such
"instructional" text with the real material, especially in the common
(for what I write, at least) case where the link text names a topic
which I expect, but do not assume, that the reader will already know
about.
[color=blue][color=green]
>> It's also useful, especially for intermittently-connected readers, to be
>> able to see whether a link is to elsewhere on the same page or to
>> another page.[/color]
>
>Well, for the HTML-savvy, the status bar will normally reveal the link's
>destination, and you can verify it yourself. For the uninitiated, context
>can again be used.[/color]
It does not do so for me, unless I expand the window to more than my
preferred width. Apart from that, the status bar is not where my
attention is directed when I am reading text.
--
John Stockton, Surrey, UK. ?@merlyn.demon.co.uk DOS 3.3, 6.20; Win98.
Web <URL:http://www.merlyn.demon.co.uk/> - FAQqish topics, acronyms & links.
PAS EXE TXT ZIP via <URL:http://www.merlyn.demon.co.uk/programs/00index.htm>
My DOS <URL:http://www.merlyn.demon.co.uk/batfiles.htm> - also batprogs.htm. | | | | re: parent selector?
Dr John Stockton wrote:
[color=blue]
> I'd like to see that done automatically (by default), using text-
> decoration dependent on the form of the href parameter - say full
> underline as at present for links to other sites, dashed underline
> for relative links to different pages, and dotted underline for
> within-page links.[/color]
That's an awful lot of options used for link destination. Note that
dotted border-bottoms are already used by Mozilla (and Opera, I think)
for <abbr> and <acronym>. For my part, I'd rather see additional
possibilities used for elements that are currently not styled, but
could use some style clues to help users. Example: dashed border for
<label>.
--
Brian (remove "invalid" to email me) |  | | | | /bytes/about
We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights.
Get the best answers to your questions from over 226,449 network members.
|