April 2, 200719 yr Hey All I'm getting this strange error when I try to validate my CSS file: CSS ERROR Target: http://www.my-igloo.net/index.php Please, validate your XML document first! Line 106 Column 832 Element type "a" must be followed by either attribute specifications, ">" or "/>" I'm not sure what it is referring to as I'm not using any XML on my site. I get the error when validating the CSS on every page on the site. The XHTML validates perfectly and doesn't show any errors so I'm not sure what's going on as it seems to imply that I'm missing the end tag off an 'a' element. Any ideas?
April 2, 200719 yr posting code would help, but I guess you have an incomplete or incorrect (<a></a>)link tag on 106. You prolly typed <a/> or summat. Dont worry, I cant spell, so I never get tags right hehe
April 2, 200719 yr Author surely that would make my XHTML fail validation...I've checked through all my <a> tags and can't find any errors. Plus I get the error whilst trying to validate the CSS and not the XHTML and there are no <a> tags in the CSS. Can't really post code as I use a lot of include files - can you do a 'View Page Source'. The Line 106 is a bit annoying as it doesn't help me pinpoint the problem as a lot of my content is in include files. I'll have another look at my include files, which contain my navigation elements. Cheers
April 2, 200719 yr surely that would make my XHTML fail validation...I've checked through all my <a> tags and can't find any errors. Plus I get the error whilst trying to validate the CSS and not the XHTML and there are no <a> tags in the CSS. Can't really post code as I use a lot of include files - can you do a 'View Page Source'. The Line 106 is a bit annoying as it doesn't help me pinpoint the problem as a lot of my content is in include files. I'll have another look at my include files, which contain my navigation elements. Cheers thats a freaky error. Is the html file validated? I have never seen owt like that its like a php error
April 2, 200719 yr Author Just ran my site through the validator within Dreamweaver and no errors were found in the code apart from within the GreyBox lightbox script that I use - I wonder whether the errors are because that and not within my code - but GreyBox uses Javascript and not XML so I'm even more confused.
April 2, 200719 yr Yes quit epossibley, that error can occur if the code isn't properly formatted i.e there isn't a space before the onclick etc. You may have to go through the javascript to look for small errors like these.
April 2, 200719 yr Author arse! I'm thinking of stripping out the GreyBox lightbox feature anyway and provide a more accesssible traditional portfolio.
April 2, 200719 yr Might be a better idea rather than scanning every bit of text in your javascript code! What an unbareable thought!
April 2, 200719 yr Author I love the lightbox feature, but a few people have got in touch saying they find it annoying or that it takes a while to load and I should just provide something simple instead...so I'm taking those comments on board and going to re-vamp the portfolio section. Going to remove the greybox from the homepage and see if that fixes the CSS error thing on validation. I hope it does! Glad you're back Ben!
April 2, 200719 yr Yeah I hope so to. Lightbox is a nice application, but as pretty as it is it's interesting to find that it's not everyone's cup of tea. I may think twice about using it. I may just stick with the basic Image only lightbox. Will have to see. Cheers Eskymo
April 2, 200719 yr get rid of the greybox, you can use javascript to produce a simmalar pop-up window like this script. http://www.dynamicdrive.com/dynamicindex17/stickynote.htm just change your CSS. The little box is fully styleable as its all CSS.
April 2, 200719 yr Author That's not a very good option as it doesn't give you the facility of displaying it when you click on a link and it doesn't offer an alternative if JavaScript is disabled. The beauty of greybox was it allowed me to display html pages in a lightbox and ig JS was disabled you just got taken to the HTML page rather than gettign no functionality. I've got a poorly hurty finger today and it's really difficult to type. That took me ages to type out!
April 2, 200719 yr Author Well that's what I'm going to do...When I re-designed my site in December/January, I really want to try a lightbox thing out. So I've done that now and decided after three months that I no longer like it and it doesn't suit my site, so will be taking it out. If it fixes the validation error then that's a bonus too.
April 2, 200719 yr Author Just had a thought - the GreyBox is only on the home page and the portfolio pages, so it can't be that causing the error as I ge the error on all the pages of the site. I'm bemused!
April 2, 200719 yr Author fixed it - it was an issue with the code in my footer. Oli pin pointed that for me and I eventaully tracked down the problem. I have missed a space between two <a> tag attributes. It took ages to spot. I ended up stipping my footer down to nothing [ooer] and re-writing it bit by bit and testing along the way until the error happened. Sorry for wasting everyone's time....
April 3, 200719 yr Well congrats to you. Sorry I wasn't on the forum to help. Been busy with midterms. What I would have suggested was to use the wordpressMU for your portfolio or a wordpress blog, that will allow people to comment on your work.
April 3, 200719 yr Author I don't want people to comment on my work to be honest - it's a work/business portfolio not a personal one.
Create an account or sign in to comment