473,387 Members | 1,374 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Problems validating css

13
Hello,
I,m new to this forum, please excuse any poor etiquette.
I,m also new to web building, therefore my question may be somewhat elimentary for those further on down the highway.
I had the code validated as xhtml and wanted the css validated, but errors are showing with references pertaining to Family and whitespace. These are related to div selectors and class and style selectors. Any suggestions?
This web page not published, still in notepad.
Jan 28 '07 #1
6 1406
AricC
1,892 Expert 1GB
Hello,
I,m new to this forum, please excuse any poor etiquette.
I,m also new to web building, therefore my question may be somewhat elimentary for those further on down the highway.
I had the code validated as xhtml and wanted the css validated, but errors are showing with references pertaining to Family and whitespace. These are related to div selectors and class and style selectors. Any suggestions?
This web page not published, still in notepad.
Post the code here so we can run it through the validator.
Jan 28 '07 #2
windy
13
Post the code here so we can run it through the validator.
Expand|Select|Wrap|Line Numbers
  1. ���body { 
  2. min-width : 80%;
  3. margin : 0;
  4. padding : 0;
  5. font-family : Geneva, Helvetica;
  6. color : #f9f9f9;
  7. background-color : #070707;
  8. html > body { 
  9. overflow : hidden;
  10. display : block;
  11. div, p, li { 
  12. font-family : Geneva, Helvetica;
  13. font-size : 12px;
  14. p { 
  15. margin-top : 0;
  16. padding-top : 0;
  17. line-height : 1.5em;
  18. h4 { 
  19. font-family : Geneva, Helvetica;
  20. font-size : 12px;
  21. color : #333;
  22. text-transform : uppercase;
  23. text-decoration : underline;
  24. text-align : center;
  25. a { 
  26. text-decoration : underline;
  27. font-weight : bold;
  28. a:link { 
  29. color : #699;
  30. background-color : transparent;
  31. a:visited { 
  32. color : #999;
  33. background-color : transparent;
  34. a:hover { 
  35. color : #066;
  36. background-color : transparent;
  37. text-decoration : underline overline;
  38. a:active { 
  39. color : #fff;
  40. background-color : transparent;
  41. li { 
  42. font-weight : 100;
  43. line-height : 0.8em;
  44. letter-spacing : 0.1em;
  45. div#header { 
  46. position : relative;
  47. width : 100%;
  48. height : 75px;
  49. z-index : auto;
  50. top : 75px;
  51. right : 0;
  52. bottom : auto;
  53. left : 0;
  54. border-top : thin solid #777;
  55. background-color : #303030;
  56. text-align : left;
  57. float : left;
  58. span.hdone { 
  59. font-family : "Microsoft Sans Serif", Geneva, Helvetica;
  60. font-size : large;
  61. font-style : italic;
  62. color : #999;
  63. letter-spacing : 0.5em;
  64. text-transform : uppercase;
  65. span.hdtwo { 
  66. font-family : "Myriad Web Pro", Geneva, Helvetica;
  67. font-size : medium;
  68. font-weight : 200;
  69. color : #4e5657;
  70. letter-spacing : 0.2em;
  71. span.hdthree { 
  72. font-family : "Myriad Web Pro", Geneva, Helvetica;
  73. font-size : medium;
  74. font-weight : 100;
  75. color : #f7f7f7;
  76. letter-spacing : 0.2em;
  77. img { 
  78. position : relative;
  79. width : 100px;
  80. height : auto;
  81. z-index : 2;
  82. top : 0;
  83. right : 0;
  84. bottom : auto;
  85. left : 0;
  86. padding-right : 25px;
  87. float : left;
  88. clear : right;
  89. border : 0;
  90. #navbar { 
  91. position : relative;
  92. width : 100%;
  93. height : auto;
  94. top : 75px;
  95. right : 0;
  96. bottom : auto;
  97. left : 0;
  98. background-color : #4e5659;
  99. #navbar ul { 
  100. padding : 0;
  101. #navbar ul li { 
  102. display : inline;
  103. #navbar ul { 
  104. margin : 0;
  105. padding : 0 0 5px 0;
  106. #navbar ul li a { 
  107. padding : 3px 10px;
  108. text-decoration : none;
  109. float : right;
  110. border-left : thin solid #94b473;
  111. #navbar ul li a:hover { 
  112. background-color : #777;
  113. #navlist li a:hover, #navlist li a:active { 
  114. text-decoration : none;
  115. #leftcol { 
  116. position : relative;
  117. width : 250px;
  118. height : auto;
  119. top : 100px;
  120. right : 0;
  121. bottom : auto;
  122. left : 75px;
  123. padding : 10px 20px;
  124. margin : 30px 50px;
  125. border : 1px dotted #333;
  126. float : left;
  127. clear : right;
  128. #articles { 
  129. position : relative;
  130. width : 225px;
  131. height : auto;
  132. top : 100px;
  133. right : 0;
  134. bottom : auto;
  135. left : 55px;
  136. padding : 10px 20px;
  137. margin : 30px 0;
  138. border : 1px dotted #333;
  139. float : left;
  140. clear : right;
  141. #menu { 
  142. position : relative;
  143. width : 160px;
  144. height : auto;
  145. top : 125px;
  146. right : 0;
  147. bottom : auto;
  148. left : 65px;
  149. background-color : transparent;
  150. margin : 0;
  151. padding : 0;
  152. text-align : left;
  153. float : left;
  154. #menu ul { 
  155. list-style : none;
  156. padding-top : 0;
  157. margin : 0;
  158. width : auto;
  159. #menu ul li { 
  160. display : block;
  161. float : right;
  162. width : 150px;
  163. margin : 0;
  164. padding : 3px;
  165. #menu ul li a { 
  166. display : block;
  167. width : 150px;
  168. padding : 3px;
  169. border-width : 0;
  170. border-style : none;
  171. text-decoration : none;
  172. background-color : #4e5658;
  173. #menu > ul#menu li a { 
  174. width : 150px;
  175. #menu ul li a:hover, #menu ul #menu li a:hover { 
  176. background-color : #777778;
  177. #menu li.menutitle { 
  178. font-family : Geneva, Helvetica;
  179. color : #989898;
  180. text-align : center;
  181. #footer { 
  182. position : relative;
  183. width : 100%;
  184. height : auto;
  185. top : 85px;
  186. right : 0;
  187. bottom : auto;
  188. left : 0;
  189. font : 10px Geneva, Hevetica;
  190. margin-top : 10px;
  191. padding-top : 10px;
  192. border-top : 1px dotted #333;
  193. clear : both;
  194. }
  195.  
Feb 9 '07 #3
drhowarddrfine
7,435 Expert 4TB
The code validates but I see the question marks at the start. Are these in your code? Are you saving it as utf-8?
Feb 9 '07 #4
windy
13
The code validates but I see the question marks at the start. Are these in your code? Are you saving it as utf-8?
Yes I am saving as utf-8. Those question marks are as the code came back from the www3 validator. But I was not given access to the validation link. What system of validation are you using? Is this an error on my part to save in notepad as utf-8?
Thank you for taking the time to share your efforts. Much appreciated.
Feb 9 '07 #5
windy
13
The code validates but I see the question marks at the start. Are these in your code? Are you saving it as utf-8?
Sorry, the other problem here is that I was using the same colors in the uppernavbar and the rightside navbar and the validator responded with warnings that similar colors were being used. Is this a problem? I want the navigation to look a certain way.
Feb 9 '07 #6
drhowarddrfine
7,435 Expert 4TB
If you save text in utf-8, editors will insert a BOM, Byte Order Mark, at the head of the code so software will know. This can confuse the validator so you might just save it as ascii.

The warnings are just that, warnings. They are concerned with accessabality and it looks at color and contrast for readability but your markup may still be valid.
Feb 9 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Applepieandpeas | last post by:
Hi, I am doing a course in web-design, and while trying things out (making a page), found that it is not valid. The message I got back said that it cannot recognise it because it must be text/html....
9
by: Mark | last post by:
Hi there On this page i get some errors when validating: http://www.keyone.nl/lab/beeldlijn/nl/collection.asp The problem is caused by the use of ASP in my pages. This is the code: <a...
5
by: Adam Child | last post by:
Hi All, I'm trying to validate an xml document. I'm having trouble setting the default namespace of the xml document. If I hard encode the namespace in the xml file then everything works fine....
3
by: hplloyd | last post by:
I am writing a windows application based on a set of generic user controls that I have developed. I have a user control called "ctlInputText" that has a label, textbox and error provider. The...
6
by: Alex Bink | last post by:
Hi, I have a validating event on a textbox in which I want to prevent the user to leave the textbox without entering the right data. Only if he clicks on another specific control he is allowed...
0
by: Mauro | last post by:
Hi, I need a big help to resolve this problem. I need to put a usercontrol in a datagrid: this control check if the code inserted is present in a archive and if not return a error message. (In...
2
by: Chris Dunaway | last post by:
I have a form with a textbox and numerous panels, buttons and other controls. I have handled the textbox Validating and Validated events. The textbox will hold a filename. In the validating...
0
by: Gary Shell | last post by:
I am experiencing some strange behavior between a UserControl's validating event and a treeview control. Initially, I thought it was related to an issue in the Knowledgebase article 810852...
21
by: Darin | last post by:
I have a form w/ a textbox and Cancel button on it. I have a routine to handle textbox.validating, and I have the form setup so the Cancel button is the Cancel button. WHen the user clicks on...
3
by: TheSteph | last post by:
Hi Experts ! I have a Winform Program in C# / .NET 2.0 I would like to ensure that a value in a TextBox is a valid Int32 when user get out of it (TextBox loose focus)
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.