No, remember that CSS is only for defining layout and appearance, not content. Displaying a title would be content. Going from there, you would have to add the title attribute to the tag you want the title to display at, e.g.:
However, using the DOM and javascript, you can set the title and alt...
function setTitle(){
allTDs = document.getElementsByTagName("td"
for (x=0; x<allTDs.length; x++){
if (allTDs[x].className == "myClass"{
allTDs[x].title = "This is in the class"
}
}
}
<body onLoad="setTitle()">
Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook (No, I'm not Rick)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.