CSS validation

This is a discussion on "CSS validation" within the Web Page Design section. This forum, and the thread "CSS validation are both part of the Design Your Website category.



 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1  
Old May 23rd, 2007, 17:38
Highly Reputable Member
Join Date: Apr 2007
Location: Kent, England
Age: 38
Posts: 560
Thanks: 0
Thanked 0 Times in 0 Posts
CSS validation

I'm doing a site which has a gallery of photos on one of the pages, I've used lightbox for these, and it all works fine. My html all passes XHTML 1.0 Strict validation, but my CSS validation comes up with three errors:
Quote:
165 * html #overlay Property progid doesn't exist : DXImageTransform

165 * html #overlay Parse Error - DXImageTransform.Microsoft.AlphaImageLoader(src="o verlay.png", sizingMethod="scale");

166 * html #overlay Parse error - Unrecognized }
They relate to the lightbox stuff, and I don't understand what those errors mean. Does anyone know what I can do to make it validate? I know it doesn't affect the actual function of it, but I just like everything to validate if possible
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old May 23rd, 2007, 17:57
Junior Member
Join Date: May 2007
Location: NW, UK
Age: 19
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS validation

Is it not just because that is not CSS, well at least not valid CSS.


I'm not sure but id say it was DHTML, nothing you can do about it, although it will work fine.

Correct me if i'm wrong!

__________
regards
christoefar
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old May 23rd, 2007, 18:05
Highly Reputable Member
Join Date: Apr 2007
Location: Kent, England
Age: 38
Posts: 560
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS validation

Thanks for your reply Christoefar. Yes, I was thinking that it wasn't CSS too, but I just followed the lightbox instructions and stuck all the bits where it said to stick them (If you know what I mean!). I know you can hide certain things in certain ways so that they pass validation, but I don't know how to do that!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old May 23rd, 2007, 18:07
Junior Member
Join Date: May 2007
Location: NW, UK
Age: 19
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS validation

Not used lightbox, I would try using

<!--

-->

To enclose the part that fails validation. Just a guess!!

__________
regards
christoefar
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old May 23rd, 2007, 18:15
Junior Member
Join Date: May 2007
Location: NW, UK
Age: 19
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS validation

Been reading about lightbox, it seams you can remove the "filter:" part of the CSS if you are not bothered about the shadow.

But other than that it won't validate.

__________
regards
christoefar
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old May 23rd, 2007, 18:32
Highly Reputable Member
Join Date: Apr 2007
Location: Kent, England
Age: 38
Posts: 560
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS validation

Hmmm, I removed the filter bit as you suggested, and sure enough it passed validation - hurrah! Oddly though, it didn't seem to affect anything on the function of it when I viewed the site, so I don't really get what that bit was for. I kind of hate using a technique that I don't fully understand like this, but it's too cool not to!

Thanks mate
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old May 23rd, 2007, 18:36
Junior Member
Join Date: May 2007
Location: NW, UK
Age: 19
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS validation

Yer strange!
Maybe it is your browser?
The filter is supposed to be for the shadow, but looking at the examples on the site, shouldn't really matter as the shadow is minimal.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old May 23rd, 2007, 18:38
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS validation

Don't remove anything!

If you CSS doesn't validate because of those "non-W3C properties" don't sweat it! It's no big deal.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old May 23rd, 2007, 18:40
Junior Member
Join Date: May 2007
Location: NW, UK
Age: 19
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS validation

Depends if you like everything to validate :P
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old May 23rd, 2007, 18:49
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS validation

The validator has it's purposes - Importance of Validation

In this context tho ... you won't get people calling you a incompetent fool because your CSS doesn't validate with those properties in there
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
Old May 23rd, 2007, 18:52
Junior Member
Join Date: May 2007
Location: NW, UK
Age: 19
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS validation

Yes of cause, alot of the CSS I do doesn't validate, but it causes no major problems, so I just leave it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12  
Old May 23rd, 2007, 18:55
Highly Reputable Member
Join Date: Apr 2007
Location: Kent, England
Age: 38
Posts: 560
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS validation

Well having recently finished a course where they told us everything HAD to validate, I'm coming at it from that angle, but I guess I'll have to learn to adjust to the real world a bit more!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #13  
Old May 23rd, 2007, 18:59
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS validation

Oh yes dear ... "real world" ... not the same AT ALL as "course world"

March to Your Own Standard - a bit extreme, but you get the point
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #14  
Old May 23rd, 2007, 18:59
Junior Member
Join Date: May 2007
Location: NW, UK
Age: 19
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS validation

If it's possible to code and validate than that is the best choice, but some things can't be done without the odd validation error.
As long as your site is compatible with most browsers, then in my opinion it should be fine.

Obviously if your code is all over the place, with loads of errors, people that do have web design knowlege will notice.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #15  
Old May 23rd, 2007, 19:00
Junior Member
Join Date: May 2007
Location: NW, UK
Age: 19
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS validation

Was abit slow on the reply there! :P
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #16  
Old May 23rd, 2007, 19:18
Highly Reputable Member
Join Date: Apr 2007
Location: Kent, England
Age: 38
Posts: 560
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS validation

Quote:
Originally Posted by karinne View Post
March to Your Own Standard - a bit extreme, but you get the point
Thanks Karinne, that was an interesting read. I think of validation as being like a teacher marking my work, and I like to get full marks! But of course I do realise there's so much more to getting it right than just passing validation. I'll just be happy that the html validates then
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #17  
Old May 24th, 2007, 00:29
Ryan Fait's Avatar
Elite Veteran
Join Date: May 2006
Location: Las Vegas
Posts: 3,787
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS validation

I'm anal, so I like to see the soothing green colors of a validating page. I just cheat by using JavaScript to put in filter and opacity CSS styles.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #18  
Old May 24th, 2007, 19:59
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,044
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
Re: CSS validation

I bork my CSS validation all the time to use something like a .htc file to make crap IE understand the psuedo class :focus etc.. Argh!
__________________

Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
css, lightbox, validation

Thread Tools

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with validation snappy Web Page Design 4 Mar 27th, 2008 18:33
help with validation glensimister JavaScript Forum 2 Jul 26th, 2007 22:58
w3c validation cocoonfx Web Page Design 8 Jul 21st, 2007 13:55
CSE for validation nextgen Scripts and Online Services 3 Jan 30th, 2007 03:41
Validation help Powderhound Web Page Design 13 Nov 4th, 2006 20:53


All times are GMT. The time now is 23:13.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved