SunQuest
           CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 5th, 2003, 10:26 AM
WorldBuilder's Avatar
WorldBuilder WorldBuilder is offline
Big Daddy
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Sep 2003
Location: Boston
Posts: 1,469 WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level)WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level)WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level)WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level)WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 3 Days 4 h 51 m 46 sec
Reputation Power: 20
Send a message via AIM to WorldBuilder
w3c strict errors (10), css, and js questions

Hi all,

Almost done with this page: http://www.bartlett-family.net/sokhan

I am trying to tidy up several things with the site so that I can get it working 100% and so that it will validate as w3c strict. Currently, I am getting these errors from the w3c:
Code:
Line 37, column 48: element "ilayer" undefined (explain...). 
  ...ss="clsMenuTD" align="center"><ilayer><layer><div class="clsMenuTitle"><span 
                                          ^
Line 37, column 55: element "layer" undefined (explain...). 
  ...MenuTD" align="center"><ilayer><layer><div class="clsMenuTitle"><span  class=
                                          ^
Line 37, column 118: there is no attribute "onClick" (explain...). 
  ...><span  class="clsMenuTitle" onClick="dropit(event, 'dropmenu0');event.cancel
                                          ^
Line 37, column 216: there is no attribute "onClick" (explain...). 
  ...lse"><a href="alternate.htm" onClick="if(ns4) return dropit(event, 'document.
                                          ^
Line 41, column 48: element "ilayer" undefined (explain...). 
  ...ss="clsMenuTD" align="center"><ilayer><layer><div class="clsMenuTitle"><span 
                                          ^
Line 41, column 55: element "layer" undefined (explain...). 
  ...MenuTD" align="center"><ilayer><layer><div class="clsMenuTitle"><span class="
                                          ^
Line 45, column 48: element "ilayer" undefined (explain...). 
  ...ss="clsMenuTD" align="center"><ilayer><layer><div class="clsMenuTitle"><span 
                                          ^
Line 45, column 55: element "layer" undefined (explain...). 
  ...MenuTD" align="center"><ilayer><layer><div class="clsMenuTitle"><span class="
                                          ^
Line 49, column 48: element "ilayer" undefined (explain...). 
  ...ss="clsMenuTD" align="center"><ilayer><layer><div class="clsMenuTitle"><span 
                                          ^
Line 49, column 55: element "layer" undefined (explain...). 
  ...MenuTD" align="center"><ilayer><layer><div class="clsMenuTitle"><span class="
                                          ^


Looking at my html file from the above site, can anyone help me fix those errors, while maintaining functionality, please? Thanks!

Also, there are 4 drop-down menus at the top of the page called from a javascript I got from Dynamic Drive. The menus work fine, but when a link is clicked (to make the drop down menu actually appear), the link text is black and very hard to read. I would like the links IN the drop-down menus to be white. I though I had this taken care of in my css file, but it is not working. Can anyone help me out with that, please? There are a lot of different javascript files and for that, I apologize. I took all of the javascript that WAS in the html and placed it externally so that I could get the page to validate. Almost there! I know it's a lot to look through, but I'd appreciate any help. Thanks a million!

Chris
__________________
Pop, pop, fizz, fizz, oh what a relief it is!

Reply With Quote
  #2  
Old November 5th, 2003, 10:36 AM
WorldBuilder's Avatar
WorldBuilder WorldBuilder is offline
Big Daddy
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Sep 2003
Location: Boston
Posts: 1,469 WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level)WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level)WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level)WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level)WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 3 Days 4 h 51 m 46 sec
Reputation Power: 20
Send a message via AIM to WorldBuilder
It occurred to me that I could simply remove the layer and ilayer tags in the html. They are deprecated, I believe. Anyway, I removed them and am down to 2 errors from the w3c validation. I still need some help with the rest. Thanks!

Oh, and... I thought of some other things... The page LOOKS fine and operates perfectly in IE and Opera, but looks really strange in NS7. The drop-down menus appear in the upper left hand corner (instead of right below the links) and everything is out of alignment. Could someone help me out with that, too?

The new w3c errors are only these:
Code:
Line 37, column 103: there is no attribute "onClick" (explain...). 
  ...><span  class="clsMenuTitle" onClick="dropit(event, 'dropmenu0');event.cancel
                                          ^
Line 37, column 201: there is no attribute "onClick" (explain...). 
  ...lse"><a href="alternate.htm" onClick="if(ns4) return dropit(event, 'document.
                                          ^


Can I simply eliminate the onClicks? I haven't tried it, but perhaps I should. Javascript newbie at play here!

Thanks!

Chris

Reply With Quote
  #3  
Old November 5th, 2003, 12:01 PM
MJEggertson MJEggertson is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jan 2002
Location: Seattle WA
Posts: 863 MJEggertson User rank is Corporal (100 - 500 Reputation Level)MJEggertson User rank is Corporal (100 - 500 Reputation Level)MJEggertson User rank is Corporal (100 - 500 Reputation Level)MJEggertson User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 22 sec
Reputation Power: 8
I don't have time to look at the site, but in xhtml, all element names and attributes must be lower case. Hence, you should have 'onclick', not 'onClick'. Makes no difference to the current generation browsers, but makes a difference if you're trying to adhere to the xhtml standard (since xml, unlike html, is case sensitive).

Reply With Quote
  #4  
Old November 5th, 2003, 12:24 PM
WorldBuilder's Avatar
WorldBuilder WorldBuilder is offline
Big Daddy
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Sep 2003
Location: Boston
Posts: 1,469 WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level)WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level)WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level)WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level)WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 3 Days 4 h 51 m 46 sec
Reputation Power: 20
Send a message via AIM to WorldBuilder
As far as the validation goes... That DID IT! Thanks! I'm still trying to figure out the CSS and NN7 problem, so if you or anyone else gets a chance, please let me know about that! Again, thanks!

Chris

Reply With Quote
  #5  
Old November 5th, 2003, 12:56 PM
flatlander flatlander is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 37 flatlander User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Still a few errors:

Generated by CSE HTML Validator Lite v3.50 (http://www.htmlvalidator.com/)

1. Warning in line 7 at character 1: You should add a space character before the '/' character. In HTML type documents, this increases backward compatibility.

2. Warning in line 8 at character 1: You should add a space character before the '/' character. In HTML type documents, this increases backward compatibility.

3. Warning in line 12 at character 1: You should add a space character before the '/' character. In HTML type documents, this increases backward compatibility.

4. Error in line 24 at character 5: The "width" attribute has an invalid attribute value "103px". Try using one of the following values: a percent, a positive integer, or "0" (zero).

5. Error in line 24 at character 4: The "height" attribute has an invalid attribute value "21px". Try using one of the following values: a percent, a positive integer, or "0" (zero).

6. Warning in line 24 at character 1: You should add a space character before the '/' character. In HTML type documents, this increases backward compatibility.

7. Error in line 35 at character 4: The "height" attribute has an invalid attribute value "34px". Try using one of the following values: a percent, a positive integer, or "0" (zero).

8. Error in line 35 at character 5: The "width" attribute has an invalid attribute value "235px". Try using one of the following values: a percent, a positive integer, or "0" (zero).

9. Warning in line 35 at character 1: You should add a space character before the '/' character. In HTML type documents, this increases backward compatibility.

10. Error in line 37 at character 3: The "height" attribute has an invalid attribute value "4px". Try using one of the following values: a percent, a positive integer, or "0" (zero).

11. Error in line 37 at character 3: The "width" attribute has an invalid attribute value "7px". Try using one of the following values: a percent, a positive integer, or "0" (zero).

12. Warning in line 37 at character 1: You should add a space character before the '/' character. In HTML type documents, this increases backward compatibility.

13. Error in line 41 at character 3: The "height" attribute has an invalid attribute value "4px". Try using one of the following values: a percent, a positive integer, or "0" (zero).

14. Error in line 41 at character 3: The "width" attribute has an invalid attribute value "7px". Try using one of the following values: a percent, a positive integer, or "0" (zero).

15. Warning in line 41 at character 1: You should add a space character before the '/' character. In HTML type documents, this increases backward compatibility.

16. Error in line 45 at character 3: The "height" attribute has an invalid attribute value "4px". Try using one of the following values: a percent, a positive integer, or "0" (zero).

17. Error in line 45 at character 3: The "width" attribute has an invalid attribute value "7px". Try using one of the following values: a percent, a positive integer, or "0" (zero).

18. Warning in line 45 at character 1: You should add a space character before the '/' character. In HTML type documents, this increases backward compatibility.

19. Error in line 49 at character 3: The "height" attribute has an invalid attribute value "4px". Try using one of the following values: a percent, a positive integer, or "0" (zero).

20. Error in line 49 at character 3: The "width" attribute has an invalid attribute value "7px". Try using one of the following values: a percent, a positive integer, or "0" (zero).

21. Warning in line 49 at character 1: You should add a space character before the '/' character. In HTML type documents, this increases backward compatibility.

22. Error in line 62 at character 4: The "height" attribute has an invalid attribute value "55px". Try using one of the following values: a percent, a positive integer, or "0" (zero).

23. Error in line 62 at character 3: The "width" attribute has an invalid attribute value "1px". Try using one of the following values: a percent, a positive integer, or "0" (zero).

24. Warning in line 62 at character 1: You should add a space character before the '/' character. In HTML type documents, this increases backward compatibility.

25. Error in line 86 at character 4: The "height" attribute has an invalid attribute value "10px". Try using one of the following values: a percent, a positive integer, or "0" (zero).

26. Error in line 86 at character 3: The "width" attribute has an invalid attribute value "1px". Try using one of the following values: a percent, a positive integer, or "0" (zero).

27. Warning in line 86 at character 1: You should add a space character before the '/' character. In HTML type documents, this increases backward compatibility.

28. Error in line 89 at character 3: The "height" attribute has an invalid attribute value "1px". Try using one of the following values: a percent, a positive integer, or "0" (zero).

29. Error in line 89 at character 5: The "width" attribute has an invalid attribute value "234px". Try using one of the following values: a percent, a positive integer, or "0" (zero).

30. Warning in line 89 at character 1: You should add a space character before the '/' character. In HTML type documents, this increases backward compatibility.

31. Error in line 93 at character 4: The "height" attribute has an invalid attribute value "20px". Try using one of the following values: a percent, a positive integer, or "0" (zero).

32. Error in line 93 at character 5: The "width" attribute has an invalid attribute value "233px". Try using one of the following values: a percent, a positive integer, or "0" (zero).

33. Warning in line 93 at character 1: You should add a space character before the '/' character. In HTML type documents, this increases backward compatibility.

34. Error in line 134 at character 5: The "width" attribute has an invalid attribute value "124px". Try using one of the following values: a percent, a positive integer, or "0" (zero).

35. Error in line 134 at character 5: The "height" attribute has an invalid attribute value "120px". Try using one of the following values: a percent, a positive integer, or "0" (zero).

36. Warning in line 134 at character 1: You should add a space character before the '/' character. In HTML type documents, this increases backward compatibility.

37. Warning in line 136 at character 1: You should add a space character before the '/' character. In HTML type documents, this increases backward compatibility.

38. Error in line 139 at character 4: The "height" attribute has an invalid attribute value "32px". Try using one of the following values: a percent, a positive integer, or "0" (zero).

39. Error in line 139 at character 5: The "width" attribute has an invalid attribute value "326px". Try using one of the following values: a percent, a positive integer, or "0" (zero).

40. Warning in line 139 at character 1: You should add a space character before the '/' character. In HTML type documents, this increases backward compatibility.

41. Error in line 145 at character 5: The "height" attribute has an invalid attribute value "290px". Try using one of the following values: a percent, a positive integer, or "0" (zero).

42. Error in line 145 at character 3: The "width" attribute has an invalid attribute value "1px". Try using one of the following values: a percent, a positive integer, or "0" (zero).

43. Warning in line 145 at character 1: You should add a space character before the '/' character. In HTML type documents, this increases backward compatibility.

44. Warning in line 150 at character 1: You should add a space character before the '/' character. In HTML type documents, this increases backward compatibility.

45. Warning in line 158 at character 1: You should add a space character before the '/' character. In HTML type documents, this increases backward compatibility.

46. Warning in line 160 at character 1: You should add a space character before the '/' character. In HTML type documents, this increases backward compatibility.

47. Warning in line 163 at character 1: You should add a space character before the '/' character. In HTML type documents, this increases backward compatibility.

48. Warning in line 164 at character 1: You should add a space character before the '/' character. In HTML type documents, this increases backward compatibility.

49. Warning in line 165 at character 1: You should add a space character before the '/' character. In HTML type documents, this increases backward compatibility.

50. Warning in line 166 at character 1: You should add a space character before the '/' character. In HTML type documents, this increases backward compatibility.

Reply With Quote
  #6  
Old November 5th, 2003, 12:57 PM
flatlander flatlander is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 37 flatlander User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
and ...
51. Warning in line 167 at character 1: You should add a space character before the '/' character. In HTML type documents, this increases backward compatibility.

52. Warning in line 168 at character 1: You should add a space character before the '/' character. In HTML type documents, this increases backward compatibility.

53. Warning in line 169 at character 1: You should add a space character before the '/' character. In HTML type documents, this increases backward compatibility.

54. Warning in line 170 at character 1: You should add a space character before the '/' character. In HTML type documents, this increases backward compatibility.

55. Warning in line 171 at character 1: You should add a space character before the '/' character. In HTML type documents, this increases backward compatibility.

56. Warning in line 172 at character 1: You should add a space character before the '/' character. In HTML type documents, this increases backward compatibility.

57. Warning in line 173 at character 1: You should add a space character before the '/' character. In HTML type documents, this increases backward compatibility.

58. Warning in line 176 at character 1: You should add a space character before the '/' character. In HTML type documents, this increases backward compatibility.

59. Warning in line 180 at character 1: You should add a space character before the '/' character. In HTML type documents, this increases backward compatibility.

60. Warning in line 183 at character 1: You should add a space character before the '/' character. In HTML type documents, this increases backward compatibility.

61. Warning in line 190 at character 1: You should add a space character before the '/' character. In HTML type documents, this increases backward compatibility.

62. Warning in line 190 at character 1: You should add a space character before the '/' character. In HTML type documents, this increases backward compatibility.

63. Error in line 191 at character 4: The "width" attribute has an invalid attribute value "18px". Try using one of the following values: a percent, a positive integer, or "0" (zero).

64. Error in line 191 at character 3: The "height" attribute has an invalid attribute value "8px". Try using one of the following values: a percent, a positive integer, or "0" (zero).

65. Warning in line 191 at character 1: You should add a space character before the '/' character. In HTML type documents, this increases backward compatibility.

66. Error in line 196 at character 3: The "height" attribute has an invalid attribute value "1px". Try using one of the following values: a percent, a positive integer, or "0" (zero).

67. Error in line 196 at character 4: The "width" attribute has an invalid attribute value "15px". Try using one of the following values: a percent, a positive integer, or "0" (zero).

68. Warning in line 196 at character 1: You should add a space character before the '/' character. In HTML type documents, this increases backward compatibility.

69. Error in line 209 at character -1: A quoted string cannot be immediately followed by text. It must be followed by a space or the end of the tag.

70. Error in line 214 at character -1: A quoted string cannot be immediately followed by text. It must be followed by a space or the end of the tag.

71. Error in line 219 at character -1: A quoted string cannot be immediately followed by text. It must be followed by a space or the end of the tag.

72. Comment: 33 errors, 38 warnings, 0 messages, 1 comment.

Reply With Quote
  #7  
Old November 5th, 2003, 01:02 PM
WorldBuilder's Avatar
WorldBuilder WorldBuilder is offline
Big Daddy
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Sep 2003
Location: Boston
Posts: 1,469 WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level)WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level)WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level)WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level)WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 3 Days 4 h 51 m 46 sec
Reputation Power: 20
Send a message via AIM to WorldBuilder
I have no idea where you got that from, but the html file DOES validate from the w3c.

Chris

Last edited by cjwsb : November 5th, 2003 at 01:59 PM.

Reply With Quote
  #8  
Old November 5th, 2003, 02:44 PM
khwang's Avatar
khwang khwang is offline
Über nübe
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Babylon 4
Posts: 240 khwang User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 29 m 27 sec
Reputation Power: 5
Quote:
Originally posted by cjwsb
I have no idea where you got that from, but the html file DOES validate from the w3c.
Chris


But this one is easy to fix:

Warning in line --- at character 1: You should add a space character before the '/' character. In HTML type documents, this increases backward compatibility.

Code:
Instead of <BR/>

write <BR />

just add one space, that's all.


__________________
Hello, old friend...

Reply With Quote
  #9  
Old November 5th, 2003, 02:52 PM
Akh's Avatar
Akh Akh is offline
|<.+#f@#+.&.|
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Mar 2002
Location: norway
Posts: 2,608 Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 3 Weeks 5 Days 20 h 12 m 30 sec
Reputation Power: 517
Quote:
Originally posted by khwang
But this one is easy to fix:


Code:
Instead of <BR/>

write <BR />

just add one space, that's all.




except you have to write it in lowercase to make it valid xhtml

Reply With Quote
  #10  
Old November 5th, 2003, 03:47 PM
WorldBuilder's Avatar
WorldBuilder WorldBuilder is offline
Big Daddy
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Sep 2003
Location: Boston
Posts: 1,469 WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level)WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level)WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level)WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level)WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 3 Days 4 h 51 m 46 sec
Reputation Power: 20
Send a message via AIM to WorldBuilder
Well, like I said, this file DOES validate with the w3c, but I think I'll download the CSE v3.50 validator anyway. Thanks, all!

Chris

Reply With Quote
  #11  
Old November 5th, 2003, 05:13 PM
khwang's Avatar
khwang khwang is offline
Über nübe
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Babylon 4
Posts: 240 khwang User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 29 m 27 sec
Reputation Power: 5
Quote:
Originally posted by Akh
except you have to write it in lowercase to make it valid xhtml


you are absolutely correct. I posted without proofreading. My bad.

Reply With Quote
  #12  
Old November 6th, 2003, 03:08 AM
flatlander flatlander is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 37 flatlander User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
The image width/height DTD for xhtml says

Quote:
<!ENTITY % Length "CDATA">
<!-- nn for pixels or nn% for percentage length -->


So strictly speaking use height="100" not "100px" or precentage "50%"
Browsers will accept "100px" "100pt" etc. but should not.

Reply With Quote
  #13  
Old November 6th, 2003, 04:48 AM
WorldBuilder's Avatar
WorldBuilder WorldBuilder is offline
Big Daddy
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Sep 2003
Location: Boston
Posts: 1,469 WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level)WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level)WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level)WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level)WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 3 Days 4 h 51 m 46 sec
Reputation Power: 20
Send a message via AIM to WorldBuilder
Yes, I also realized that after I downloaded CSE lite. Thanks a lot, guys. All better now!

Chris