Jump to content

Tobo

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by Tobo

  1. display:block kind of works, but it adds a line underneath each link!Is that right?
  2. Wotcha, folks.My first post here, so please be gentle with me.I'm currently trying to upgrade my websites to make them more xhtml friendly. The validator here at w3.org basically ripped 'em to shreds.I've always liked the way the Microsoft highlights it's links using just css, and I've tried to replicate it here: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head> <title>Untitled</title><style>a:link {text-decoration:none;}a:visited {text-decoration:none; color:silver;}a:hover {text-decoration:none; color:red; background-color:green;width:100px;}</style></head><body><p><a href="one.htm">One</a><br /><a href="two.htm">Two</a><br /><a href="three.htm">Three</a><br /><a href="four.htm">Four</a></p></body></html> However, when I convert my code to xhtml and close off all the tags and include this for the doctype: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> ....I find that the width property when used with the links doesn't work!Can anyone help me?Many thanks,Tobo.
×
×
  • Create New...