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.

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

Firefox 3.5.3 available for testing

September 2nd, 2009

Mozilla have announced the next available Firefox build for developers.
This release contains mainly security and stability fixes, details of which can be found in the FF3.5.3 bug list

Anyone riding the BETA channel can do a manual update to download ff3.5.3 otherwise you can download from here – http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/3.5.3-candidates/build1/

“The Office Web Apps Love Your Browser “

August 11th, 2009

Unless you use Opera, Safari (windows version), Chrome and several others… not to mention IE6 used by more ‘Office’ workers than anyone.

The Microsoft Office team working on the new web version have announced in a very ironic blog post that the new service will only be supported via the following browsers

  • Internet Explorer 7 and 8
  • Firefox 3.5 on Windows, Mac and Linux
  • Safari 4 on Mac

They haven’t ruled out support for other browsers in the future and just say to “Give it a try … and let us know if you see issues”.

They do make a good point tho andstatistics wise they have chosen the most popular browsers used (although I would swap Safari for Opera in my list) and focused on them for launch support and the fact they have left off IE6 could be a blessing for all of us.

Microsoft Office is used by almost all businesses around the world at some point or another, most of which are also still using IE6 as their main browser for one reason or another (that’s a different argument for another day). By not supporting IE6 and pushing businesses to use the web version of office instead, they are in a great position to quietly force businesses to upgrade and join the rest of us in standards compliant (almost in IE’s case) browser world. whether or not the big cheeses will go for rolling out a browser upgrade or just stick to using existing versions of office will be interesting to see but I for one hope they do…

You can read more on this story by reading the microsoft office blog post by clicking the link above.

Firefox 3.6 Alpha 1 now available for download

August 9th, 2009

Mozilla have announced the first developer milestone of Firefox 3.6 is now available to download for developer testing. Code named Namoroka, it is built on a pre-release version of the Gecko 1.9.2 platform and introduces several new features, most noticeably speed improvements to TraceMonkey and more support for CSS3.

You can download Namoroka using the following links

Mozilla have, as always, released a developer guide to the new features, for a full list of additions to Firefox 3.6 follow this link

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