In article <Xns9731CAA5D81C2jkorpelacstutfi@193.229.4.246>,
"Jukka K. Korpela" <jkorpela@cs.tut.fi> wrote:
[color=blue][color=green]
> > Is there anyway of having a border on text hyperlinks but not image
> > hyperlinks? I don't want to use classes if I can avoid it.[/color]
>
> You can't avoid using classes (or other special methods). There is no way in
> CSS to express a selector that means "elements that contain...", only
> selectors of the form "elements contained in...".[/color]
The original question does make me wonder whether you couldn't manage to
style an image link in a different manner to a text link, without a
class, as requested. That could be handy for a page I have with
thumbnail images. Images are inline and are all contained in
paragraphs. The page is commercial, so it contains no other links apart
from navigation. Navigation links are all in lists. THe question is
making me think a lot harder about how to plan my HTML for later styles.
Plus the potential for retrofitting styles without altering existing
pages makes it interesting.
What made me think about being able to avoid classes was
http://www.jasonspage.net/blog/nodiv/ which shows a two column, plus
header and footer page styled entirely without div, span, id or class.
[color=blue]
> Just let links be links, m'kay?[/color]
I hate Hunt the Link pages.
--
http://www.ericlindsay.com