Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Old 07-21-2005, 01:02 AM Validation error?
The_Anomaly's Avatar
Extreme Talker

Posts: 216
Location: Boston, Ma
Trades: 0
I went to W3C.org to check some pages i made for validation, when i tried validating the CSS file i made it gave me this. I dont think its an error because it printed all of my code back and said valid CSS, but whats this mean?

To work as intended, your CSS style sheet needs a correct document parse tree. This means you should use valid HTML.

The CSS i had was:
Code:
body{
	background-attachment: fixed;
        background-image: URL(images/bars.gif);

	
          }

		
		
		table.main{
		position: absolute;
		top: 10px;
		width: 100%;
		height: 500px;
		border: 0px;
		}

		P.riverview
		{
		font-family:  Castellar, Engravers MT, Monotype Corsiva;
		font-size: 20pt;
		color: Black;
		position: relative;
		top: 5px;
		left: 5px;
		z-index: 2
		}

		P.success
		{
		font-family:  Castellar, Engravers MT, Monotype Corsiva;
		font-size: xx-large;
		font-weight: bold;
		color: Black;
		position: relative;
		top: 5px;
		left: 5px;
		text-align: center;
		z-index: 2
		}
		
		a:link,a:visited,a:hover{
		color: #000000;
		text-decoration: none;
		}

		a:visited{
                color: #000000;
                }

		a:hover{
                color: #000000;
                }
The_Anomaly is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-21-2005, 03:36 AM
Enigmatic's Avatar
Registered User

Posts: 86
Location: No Fixed Abode
Trades: 0
Your z-index: 2 in p.success has no ; to end it.

That would cause the validation to fail.
Enigmatic is offline
Reply With Quote
View Public Profile
 
Old 07-21-2005, 04:42 AM
Hudson's Avatar
Experienced Talker

Posts: 38
Location: Derby, UK
Trades: 0
Also, make sure you validate your HTML before validating your CSS
__________________

Please login or register to view this content. Registration is FREE
Hudson is offline
Reply With Quote
View Public Profile Visit Hudson's homepage!
 
Old 07-21-2005, 10:14 AM
fancymoustache's Avatar
Ultra Talker

Posts: 316
Location: Michigan
Trades: 0
Is your CSS online, or on your local machine? I get the same problem when I try to validate from my machine. Just upload it to your website, then try to validate it.


Hope it helps,
Micah
fancymoustache is offline
Reply With Quote
View Public Profile
 
Old 07-21-2005, 11:51 AM
Minaki's Avatar
Defies a Status

Posts: 1,626
Location: Guildford, UK
Trades: 0
It's not an error, it's more of a warning. It's just telling that although your CSS is fine, you could run into some problems if the HTML Documnt it's attached to isn't valid.
__________________
Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Minaki is offline
Reply With Quote
View Public Profile Visit Minaki's homepage!
 
Old 07-21-2005, 02:31 PM
The_Anomaly's Avatar
Extreme Talker

Posts: 216
Location: Boston, Ma
Trades: 0
from everything i gather my HTML is fine. The only errors i get when validating that is from the javascript at the begining and the onblur in my text fields. Should the validator find valid javascript or is this a normal thing?
The_Anomaly is offline
Reply With Quote
View Public Profile
 
Old 07-21-2005, 05:08 PM
Enigmatic's Avatar
Registered User

Posts: 86
Location: No Fixed Abode
Trades: 0
If its a CSS validator, it will interperate JS as invalid CSS.

Remoe all text apart from CSS stuff, place it in a seperate .CSS file and validate. If it passes you know its fine and can place it back in your file with the JS etc.
Enigmatic is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Validation error?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.17965 seconds with 12 queries