Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

My CSS is getting a strange error on validation

Featured Replies

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? :unknw:

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 :friends:

  • 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

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

  • 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.

  • Author

arse!

 

I'm thinking of stripping out the GreyBox lightbox feature anyway and provide a more accesssible traditional portfolio.

  • 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!

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 :)

  • 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 :cray: and it's really difficult to type. That took me ages to type out!

why dont you just have it link to a normal page?

 

Dont reply if you dont want lol.

  • 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.

  • 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!

  • 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.... :rolleyes:

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.

  • 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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.