I'm using hover span to pop a css box above a link. It works well but I'm having to style the contents of the span box using <p class> e.g. p.line1 { font-size:1.2em; font-weight:bold; background:#9c0; color:white; padding:3px 10px 3px 10px; } p.line2 { font-size:0.9em; line-height:1.8em; color:white; padding:8px 10px 8px 10px; {
although this method works fine in ie 6 & 7, firefox, opera, etc, the webpage doesn't validate. Does anyone know of another method I could use.
Mr. Nifkin, you are a genius. It works perfectly and now validates. I really would like to really thank you a lot. I've puzzled over this for days trying various ways to make it validate and never once did I think about spans inside spans.