Jump to content

newbi having problems


GhostRider2110

Recommended Posts

menu system, which I want to use as an SSI include. Anyway, just getting this menu to work under CSS is driving me bonkers.. (Ok.. I already am)..Two URLshttp://www.ussma-midwest.org/scalemasters/.../css/menua.htmlhttp://www.ussma-midwest.org/scalemasters/...s/css/menu.htmlThe only diff between the two is menua.html has theCode:

<?xml version="1.0" encoding="utf-8"?>

at the top as per I read for proper doc types....Local in the Preview everything displays as it should A virtical menu, black boxes with white letters, hover over and the box turns red... Firefox 1.5x and 2.0 just gives me horizontal text links. IE6 will display properly with menu.html but menua.html displays the HTML source, IE 7 seems to display both properly..... Any help would be greatly appreciated... The idea and code came from http://www.cssplay.co.ukThanksMitch

Link to comment
Share on other sites

I don't know that the line you added is required for all situations. (might be wrong)Here is what I have been coding with based on some information from the w3c site. I wish I could find the link directly, but their site is difficult to navigate. :)

<!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"><head>	<title>An XHTML 1.0 Strict standard template</title>	<meta http-equiv="content-type" 		content="text/html;charset=utf-8" />	<meta http-equiv="Content-Style-Type" content="text/css" /></head><body>	 <p>... Your HTML content here ...</p>  <p>	<a href="http://validator.w3.org/check?uri=referer">validate the xhtml</a>  </p>  </body></html>

Link to comment
Share on other sites

I don't know that the line you added is required for all situations. (might be wrong)Here is what I have been coding with based on some information from the w3c site. I wish I could find the link directly, but their site is difficult to navigate. :)
<!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"><head>	<title>An XHTML 1.0 Strict standard template</title>	<meta http-equiv="content-type" 		content="text/html;charset=utf-8" />	<meta http-equiv="Content-Style-Type" content="text/css" /></head><body>	 <p>... Your HTML content here ...</p>  <p>	<a href="http://validator.w3.org/check?uri=referer">validate the xhtml</a>  </p>  </body></html>

Thanks, that line is for IE.. Here is the W3C link: http://www.w3.org/QA/2002/04/valid-dtd-list.htmlI'm sure there is just something small I am missing....See-yaMitch
Link to comment
Share on other sites

Thanks. Bookmarked.I read other articles which suggest that including that line puts 'some' Browsers into Quirks mode, which is a bad thing if you are trying to develop cross-browser compatability. There is a good posting over at the csscreator.com site that reviews the effects of various DTD's and I think that is were I got the exclusion suggestion from.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...