HighDots Forums  

Doesn't seem possible

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Doesn't seem possible in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #21  
Old   
Lauri Raittila
 
Posts: n/a

Default Re: Doesn't seem possible - 04-19-2004 , 12:58 PM






In article Mark Johnson wrote:

Quote:
div { color: blue }
div:HOVER { color: red }
div:HOVER a { color: blue }
div b:HOVER { color: blue }

Try that in Mozilla or Opera 7.5 - probably not in Opera 7.2.

Lauri Raittila <lauri (AT) raittila (DOT) cjb.net> wrote:
That worked best in Opera 7.21beta 6 or 10 or something (if someone wants
to know, google opera.beta for my bug charts, that version had bug that
this didn't work for display:table etc.). Has not worked on any release
version of Opera IIRC. I haven't tested since O7.5b2 and not on mozilla
since firbird.

The best I could get for :visited was to apply a DirectX filter in IE.
The style is brought in through a javascript loader only for IE 5.5+.
I was reluctant to use this, for IE, because sometimes the DirectX
filters can be broken. If you rely on them, it could break on you. So
instead of a background color, which if the DX alpha failed to work
would entirely cover the 'link' text, I used a transparent gif. This
gives you the necessary 'hot' area on the visited link. The linkbutton
is, in a non-styled version, a left aligned img inside an anchor
element.
I have no idea what you want to happen
Why is
div:hover a:visited { color: blue }
not good? (exept that it don't work on IE?)



--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Saapi lähettää meiliä, jos aihe ei liity ryhmään, tai on yksityinen
tjsp., mutta älä lähetä samaa viestiä meilitse ja ryhmään.



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.