Unstoppable Domains

Small css question + 2 questions

Spaceship Spaceship
Watch

Biggie_mac

Established Member
Impact
0
My problems is this: I want the links of my page that have been visited to have the same effect of those not visited. To be more specific:

a:hover{
text-decoration: underline;
color: navy}

a:visited{
font: 13px arial;
text-decoration: none;
color: #666666}

The links that were visitid by me appeared with underline so I had to put text-decoration: none to the visited type but in the same time I want the links to appear underlined when hovered. And the problem is that the links visited don't become underlined when hovered. Only the unvisited ones. Anyone following me? I really can't see any way out so pls give me a hint. Basically I want all the links to become underlined when hovered.

And 2 simple questions...I remember reading somewhere that is recommended that u put a whole link as a ref instead of a direct one.Meaning to put

<a href="www.mysite.com/page.html"
instead of
<a href="page.html"
Is that true...does that actually help?

And I've noticed that some sites have an additional "title" attribute along the alt atribute for pictures.

<img border="0" alt='word' title='same word' src=... ..is that necessary?
and that also some off people add class="" to the picture...although there is nothing between the comas(""). what is the point of doing that? Thanx a lot for helping me out! Cheers
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable DomainsUnstoppable Domains
TO MAKE THE TEXT UNDERLINE ON MOUSEOVER:

a.name:link {color: #ff0000; text-decoration: none}
a.name:visited {color: #0000ff; text-decoration: none}
a.name:hover {text-decoration: underline}

The above code is the CSS Code for the text link.

<a class="name" href="default.asp" target="_blank">Link must be placed here...</a>

This is the code for placing the link.

Try it in yer editor and tell me the results.
I hope this will clear yer first question.


SECOND QUESTION

[DIRECT LINKING]

I think REF linking will help you better.
I use REF linking.

MOST of the sites use REF linking.

[IMAGE]

TITLE is just a text to display in a tool tip
CLASS is the class of the element.

It is not a problem whether you insert them or not, your image will work properly..!
 
0
•••
thomas got everything right I think.

I'll just add that according to W3C the "alt" attribute is required for every image (or non-text element) on your site for accessibility reasons. The "alt" attribute is not supposed to display a tooltip, whereas the "title" attribute is.
 
0
•••
I never said the "alt" attribute is used for displaying a tooltip.
 
0
•••
and I never said you did, I was refering to the way IE handles the alt attribute.

Rowan W said:
I'll just add...
 
0
•••
If you have problems in the future please send me a pm. I can fix it for a small amount of NP$ and some a rep pt.
 
0
•••
Dynadot — .com Registration $8.99Dynadot — .com Registration $8.99

We're social

Unstoppable Domains
Domain Recover
DomainEasy — Payment Flexibility
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back