This morning I have been developing a website from a series of .psd files. The designer did something that I haven`t had to code into a website for a very long time, the navigation area had an opacity, a semi transparent layer over an image. My first thought was cross browser compatability to ensure it works in all web browsers Continue reading ‘css opacity across all web browsers’
Archive for the 'Coding snippets' Category
A month or so ago Firefox updated itself to version 2.0.0.6, as a result my firefox search bar options have been missing missing google.co.uk. I use the search bar within firefox and am returned with www.google.com results.
I trawled the Firefox website and Googled galore for an answer to this but found bob all, so this afternoon fed up of having to manually goto google.co.uk for my searches, I thought I would have a dig around.
Many years ago we used to size text using pixels, we knew where we were with them. Tell a web browser to set the text size at 12px, voila it was done. But then the web grew up, we realised we had to start to change the way we develop websites, accessibility and usability was key and pixel text sizing just didn`t do the job.
More and more people are using css on their websites to position text and images, which is a good thing but please check across all web browsers!
In the past week I have come across several websites that display fine in IE but fail in standard compliant web browsers such as Firefox or Opera. One of the main problems is the ‘null content bug’. Continue reading ‘Div disappearing in Firefox?’
Everyone by now should be using css to style their websites, if you are still using tables for your layouts, may you be strung up by your short and curly’s and flogged until you promise never to use tables again! Continue reading ‘Speed up your css development’
On a daily basis I stumble across many websites with a ‘print this page’ feature. Some use complex javascript to strip out images and certain content, others make a call to the database for simply the content text and others maintain seperate files made purely for printing! Continue reading ‘The easiest possible print this page script ever’
We know by now that IE has a problem displaying a fieldset background colour or image incorrectly. The colour is bled out and overspills into the legend tag. But we don`t want our websites to look scratty, so lets fix it. Continue reading ‘Image method to fix IE fieldset background bug’
The problem IE faces when rendering fieldset background is that it applies the fieldset background to the legend, as well as the fieldset itself.
The solution to this is to seperate the fieldset from the legend. Here’s how I do it, you may be able to figure out another method but this one works perfectly fine for me; Continue reading ‘css method of fixing IE to display fieldset background correctly’