The Gaming Lounge

Tripping up in CSS

Friday, April 27th, 2007

It’s a funny thing, web design. With recent sites I’ve developed I’ve moved to using CSS and endeavoring to build standards compliant sites. yet recently a site I built, that had validated as compliant was not rendering correctly in Safari.

It tested OK in obscure old versions of IE, it tested OK in Opera and Firefox. but my customer used Safari, and she was never seeing the website as intended. So I went researching, trying to find mention of this elusive bug that may be causing Safari, and Safari alone to disregard my CSS. Yet I was finding the opposite, Safari is compliant, Safari renders pages to standards and so on. So I was stumped.

Not having a Mac to test on didn’t help, and I sidelined the project for a while. Then today, knowing I needed to resolve it, I waded in again. I read countless pages on DocTypes and web standards, nothing. Out of obstinacy I ran the page through a XHTML validation; passed. I then ran it through a CSS validator…. and it failed. This page I had carefully constructed to be compliant, and which was working happily in every browser but Safari was not CSS compliant! What had I missed?

It turns out, after originally validating my code I had gone through the style sheet and added comments. Yes, that’s right, in my mind I hadn’t changed the code at all, I’d simply commented it for future reference. It was the comments which broke it. I’d used the old ‘standard’ of a double forward slash. “//” and thought nothing more of it. Yet the validator was showing every commented line as having a parsing error. On a hunch, I changed all the comments to enclosed comments with a /* and a */ at the end. I rang a friend with a Mac, “Can you check this page out for me” and behold he sent through a screenshot of the page rendered as intended,

A few comments had tripped up my CSS and left me wondering what had gone wrong for a long time. Lesson learnt.



It’s the final round

Tuesday, April 3rd, 2007

Of the blogging giants battle, and it looks like Gizmodo for the win! You can vote too, and help them along the way. AFter all they are simply the best Gadget & Tech blog out there. Makes me jealous it does, years ago that was what Gaming Lounge was aiming for.



Top 20’s we love!

Monday, April 2nd, 2007

Occasionally I come across a blog or website that I think is worthy of a mention here at The Gaming Lounge, and these two Top 20’s certainly fit the bill, combining my love for SFX and prop making with my love for comics, film and sci-fi.

Predator

Top 20 FX Suits
Top 20 Comic Weapons

I wont tell you what gets number one spot, but it isn’t our Predator friend here.



Gizmodo Battles It Out

Saturday, March 31st, 2007

One of the sites I read every day, Gizmodo, are battling it out in a round robin blog contest. They’re in the final stages now, so go and check out this page and vote for them! Scroll down just past the competition map and vote in Game 29.



What’s happened to the Lounge?

Wednesday, March 28th, 2007

Welcome to The Gaming Lounge, we’ve been running gaming news and previews and other interesting stuff for almost 10 years now! Recently, bandwidth problems, and security holes in a script we were using forced us to re-evaluate our hosting solution, and the format of the site. So we have temporarily removed all our old content with the intention of re-publishing the best articles here in a blog format.

We will also endevour to inject some new life into the Lounge and welcome new readers. So stay with us please as we undergo this transition.