This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Stylesheets > December 2005 > IE 6: Links to Anchors in the Same Page
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
IE 6: Links to Anchors in the Same Page
|
|
| eomer 2005-12-05, 10:34 pm |
| I have a lengthy page with several paragraphs. At the top of the page
is a navigation bar with anchors to each of the paragraphs (the links).
The problem is this: If I go to the page (after the cache and history
have been cleared) the links are blue because I haven't clicked any of
the links (this is expected). Now, if I click to another page and then
return, all the links now indicate that they have been clicked. This is
not what I would expect - I would expect them to still be blue, but now
they are the purplish color.
Can you please advise what I'm doing wrong?
Again, this is IE6 and I am using just a plain text editor to write the
html and css. The css is below. Thanks in advance.
div#navbarupper{
height: 30px;
width: 100%;
border-top: solid #000 2px;
border-bottom: solid #000 2px;
background-color:#9FBFDF;
}
div#navbarupper ul{
margin: 0px;
padding: 0px;
color: #FFFFFF;
line-height: 30px;
white-space: nowrap;
text-align: center;
font-size: large;
}
div#navbarupper li{
list-style-type: none;
display: inline;
}
div#navbarupper a{
padding: 6px 10px;
}
div#navbarupper a:link{
background: transparent;
color: #0000FF;
}
div#navbarupper a:hover {
background: transparent;
color: #FF0000;
background-color: #EDEDED;
}
div#navbarupper a:visited{
background: transparent;
color: #800080;
}
| |
| Jukka K. Korpela 2005-12-06, 6:55 am |
| "eomer" <eomermuil@yahoo.com> wrote:
> I have a lengthy page with several paragraphs. At the top of the page
> is a navigation bar with anchors to each of the paragraphs (the links).
Different browsers treat same-page references differently. In CSS terms, this
means that such links might be in :visited state when the page on which they
appear has been visited, or only when the link has been followed. You can't
change this behavior in CSS.
> Can you please advise what I'm doing wrong?
A few things like setting heights in pixels and setting color to a specific
value and background to transparent. But as regards to treating links as
visited or unvisited, nothing.
You might consider dividing the long page to small pages, one paragraph on
one page, and with the table of content ("navigation bar") on a separate
page.
--
Yucca, http://www.cs.tut.fi/~jkorpela/
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|