Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 20th, 2005, 11:49 PM
Dave
Guest
 
Posts: n/a
Default CSS and Hyperlinks

I have a top nav and a left nav.

I want the styles on each to be different.

I got it to work just fine on NN7 but with IE6 the 'visted' colour
(not specified anywhere on my page) takes precedence of the <style>
entry.

Example here : http://217.34.24.184/

Thanks in advance for somebody pointing out my error.
  #2  
Old July 20th, 2005, 11:49 PM
Steve Pugh
Guest
 
Posts: n/a
Default Re: CSS and Hyperlinks

dc@sell365.com (Dave) wrote:
[color=blue]
>I have a top nav and a left nav.
>
>I want the styles on each to be different.
>
>I got it to work just fine on NN7 but with IE6 the 'visted' colour
>(not specified anywhere on my page) takes precedence of the <style>
>entry.[/color]

Depends what you styles are. If you've only defined a {} or a:link {}
(regardless of whether you use a class to define the two different
sets of links) then the browser's defaults for a:visited should apply
when the link is in the visited state.
[color=blue]
>Example here : http://217.34.24.184/[/color]

"Directory Listing Denied
This Virtual Directory does not allow contents to be listed."

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <steve@pugh.net> <http://steve.pugh.net/>
  #3  
Old July 20th, 2005, 11:49 PM
Dave
Guest
 
Posts: n/a
Default Re: CSS and Hyperlinks

Sorry, link was crap :/

http://www.myfootballworld.org.uk/page1.htm

As far as I know I have defined all I need to.

Maybe you can take a look at the source?

Im thinking that the norm is to _not_ prevent the visiter from knowing
which links they have previously visited and therefore IE overrules
what I am trying to do?

The strange thing is that if I set a link to be for an external
webpage opening in a new browser, the link works fine.

Thanks in advance.
  #4  
Old July 20th, 2005, 11:49 PM
Steve Pugh
Guest
 
Posts: n/a
Default Re: CSS and Hyperlinks

dc@sell365.com (Dave) wrote:
[color=blue]
>Sorry, link was crap :/
>
>http://www.myfootballworld.org.uk/page1.htm
>
>As far as I know I have defined all I need to.
>
>Maybe you can take a look at the source?[/color]

a.leftmenu:visted

Spot the missing letter.
The CSS validator would have told you as much:
http://jigsaw.w3.org/css-validator/v...g.uk/page1.htm
[color=blue]
>Im thinking that the norm is to _not_ prevent the visiter from knowing
>which links they have previously visited and therefore IE overrules
>what I am trying to do?[/color]

The norm is to distinguish between visited and unvisited links.
So what you are trying to do is bad practice. But IE isn't sabotaging
you, your own typing is.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <steve@pugh.net> <http://steve.pugh.net/>
  #5  
Old July 20th, 2005, 11:49 PM
Dave
Guest
 
Posts: n/a
Default Re: CSS and Hyperlinks

> The norm is to distinguish between visited and unvisited links.[color=blue]
> So what you are trying to do is bad practice. But IE isn't sabotaging
> you, your own typing is.[/color]


Thanks Steve, that would explain it ! On reflection I will be using a
diff colour for visited, just not red :)

Rgds
Dave
 

Bookmarks

Thread Tools

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

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

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 network members.
Post your question now . . .
It's fast and it's free

Popular Articles