Enable broken image placeholders in Firefox

March 11th, 2010

Something that has always bugged me about Firefox is that if it encounters a broken image it doesn’t display an image place-holder. Instead it displays the alt attribute as in-line text. This can cause problems if your primary development browser is Firefox, as you may not notice broken images on a page.

For a while there has been an option in the config to display image place-holders while a page loads but not for broken images as on IE (yes I’m praising an IE feature!).

Image placeholders on load is set to ON by default, your can change this if you want by going to about:config and searching for ‘image’. The option your looking for is:

browser.display.show_image_placeholders

Just double click to change the value.

As I said before, this doesn’t affect broken images after the page has loaded, and after several searches it looks like the option just isn’t available to Fx users as a general setting. There is however a solution…

Firefox allows users to specify custom CSS to be applied to websites on a global basis, e.g if you want your default link colour on unvisited links to be black instead of the default blue.

You do this by making changes to your global content css file. You can find it at the following location (OS Specific – I’m on windows 7) ‘%appdata%\Mozilla\Firefox\Profiles\\chrome’ (if your on a domain you will need to edit it in your roaming folder), look for a file called ‘UserContent-example.css’ and rename it to ‘UserContent.css’, this will then be loaded by Firefox when it fires up.

Add the following CSS to the file and restart Firefox..
/* Enable image placeholders */
@-moz-document url-prefix(http), url-prefix(file) {
img:-moz-broken{
-moz-force-broken-image-icon:1;
width:24px;
height:24px;
}
}

Thats it… when you next come accross a broken/missing image, you will get a box the size you have defined in its place with the alt inside it.

Google trial website design

November 26th, 2009

Google are playing with a new website design for a select number of thier ‘.com’ visitors today, not too much has changed and they are keeping with the minimalist look, but have changed a few colours and replaced the default browser buttons for some nice blue images.

The biggest change comes on the SERP’s (Search Engine Result Pages) where the navigation has moved from the top of the results to a left hand column

New Google SERP Design

New Google SERP Design

Iif you cant wait for it to be rolled out worldwide, you can get a sneak peak by following these steps

1) log out of your Google account if currently logged in

2) goto http://google.com/ncr

3)  type the following javascript into your address bar to add a cookie to your browser

javascript:void(document.cookie="PREF=ID=20b6e4c2f44943bb:U=4bf292d46faad806:TM=1249677602:LM=1257919388:S=odm0Ys-53ZueXfZG;path=/; domain=.google.com"); alert('cookie added');

4) reload the page and you should see the new design…

New Google Design

Googles Nov 09 Redesign

UPDATE:

if you would like to remove the cookie from your browser, them enter the following into your address bar

javascript:void(document.cookie='PREF=20b6e4c2f44943bb;path=/;domain=.google.com;expires=Sat, 01-Jan-2000 00:00:00 GMT'); alert('cookie removed');

An Early Look At Internet Explorer 9

November 18th, 2009

The Microsoft Internet Explorer Development team has made a post on their blog about the next instalment of the Internet Explorer Saga (rumoured to be the last Redmond based browser to bear the name Internet Explorer). Unfortunately there is no alpha build available with this post for us to play with, just the usual spiel telling us about how good IE9 is will be might be, and how it compares to the “latest” (as of 18/11/09) builds of other more popular browsers.

Full of “how are javascript engine is better than your javascript engine” talk, there isn’t much about the features it will include, or a reason why they dont just release a version 8.* will all these updates rather than just going for version 9, but it does highlight their focus on improving CSS support (including rounded corners), its defiantly worth a quick read and also a bookmark for those of you not already subscribed to the RSS feed.

You can find the post on the IE Developer Blog

Happy 5th Birthday Firefox

November 9th, 2009

Mozilla Firefox is 5 years old today!
Version 1.0 of the popular open source web browser was unleashed upon the world November 9th 2004 and has gone from strength to strength ever since.
Currently on version 3.5 Firefox has gained huge following over the years (including yours truly) and is currently chasing the heals of Microsoft’s Internet Explorer well ahead of the compitition (Opera, Google Chrome, Safari, etc).

You can read more on the history of Mozilla Firefox on this wikipedia article.

Users of Twitter can show their support by adding a Twibbon to your Twitter profile picture

And everyone else can forward this link to friends, family, colleagues, acquaintances and anyone else you meet on the street – http://getfirefox.com/ and help to make the web a better place

Google Webmaster Central Channel

October 29th, 2009

I’ve been listening and watching these videos for a long time and was speaking to a fellow developer last night and he didnt know about them!
So I thought today I would make a quick post to let everyone know what they are and why you should listen to them.

What is the Google Webmaster Central Channel?
Its a channel on Youtube that is used mainly by Matt Cutts (project leader of Googles web spam team) to pass on little snippets of info and answer questions made by Joe Public and his wife on the Google Forum. It is also used by other teams,  to give useful information and advise on how to make the most out of Google and the web as a whole.

Why should I watch them?
Why not? Google are market leaders in their field and they are giving advise (for free) on how to improve your website, I’ve learnt many tips and tricks from watching the videos and a lot of them have helped out a lot.

Where can I watch the videos?
Here is the answer, on YouTube – http://www.youtube.com/user/GoogleWebmasterHelp

Return to the Homepage Read Gavin Taylors Blog View Gavin Taylors Portfolio About Gavin Taylor Contact Gavin Taylor