Dynadot Aftermarket: discover domain gems worth investing in. Visit our aftermarket.

Small css question + 2 questions

SpaceshipSpaceship
SpaceshipSpaceship
SpaceshipSpaceship
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
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
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
Close
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
Close
I never said the "alt" attribute is used for displaying a tooltip.
 
0
Close
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
Close
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
Close
DomainEasy: white label portfolios are live. Enable yours.

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Filters for activity feeds
Your news feed, Latest activity, and the activity tab on profiles now have filter buttons: All, Posts, Quick replies, and Other. Your...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back