1) One of the two text links does not make the cursor change to the "pointing hand" when you mouse over it (it remains an I-beam thingy-whatever-you-call-it).
2) Clicking any of the links does not turn them red. However, after being taken to the page that the link points to and then hitting the "back" button, mousing over that link then turns it red and it remains red after removing the cursor.
<a href = "the link to the page">
<img src="http://www.maps-gps-info.com/image-files/geko201whbkgs.jpg" alt="Garmin Geko 101 GPS receiver" width="120" height="200"></a>
But it is easier to use relative path to the image.
Just look at the source code of the first image!
2. Your links:
You have to edit your CSS to this ->
#your divs a {
/*define the style*/
color: #000;
}
#your divs a:hover{
color: #FF0000;
}
#your divs a:visited{
color: #999999;
}
That should help for the collor of the links. It is working for me
Last edited by Webfreak; 06-07-2004 at 01:05 AM.
"There are only two forces in the world, the sword and the spirit. In the long run the sword will always be coquered by the spirit!" Napoleon Bonaparte
Your links are wrong. <a> tags are inline elements, <p> and <div> tags are block level elements.
Block level elements should not go inside inline elements.
Every fight is a food fight when you’re a cannibal.
He just means use CSS instead of that old invalid code in your body tag. Put this in your head section and get rid of ALL the attributes in your body tag:
I am sorry but I have made a kind of typing mistake. I have written the code for collors wrong. It should be only one # not ##.
P.S: I would also suggest that you try to validate your HTML code. This process can hlep you out to solve lots of problems.
"There are only two forces in the world, the sword and the spirit. In the long run the sword will always be coquered by the spirit!" Napoleon Bonaparte
Originally posted by myrrh 1) The image and its text link do not go red for hover or active.
They do for me, but then I was using a good browser. In IE the border of the image does not change colour so I wrote some more styles for that.
Originally posted by myrrh 2) The other text link goes red for hover and takes me to its proper destination, but when I return via the back button, the text link is still red.
That's because the focus is still on that link and the styles tell a:focus to be red. I have taken that off in the new styles but now it becomes a bit of an accessibility issue.
If someone was tabbing through your links they would not know where they were up to because a link with focus would just look the same as a normal link.
Originally posted by myrrh Also, is there a way to take the embedded style and put it in the external CSS document?
It's called copy and paste.
Every fight is a food fight when you’re a cannibal.
Bookmarks