March 22nd 2008
Tags:
General
No Comments
I was just doing some updates to one of my sites to fix some dynamic javascript problems that I'd discovered with the past couple of Firefox 3 betas. A page I'd designed back in 2006 had a moving DIV that changed position as a result of a post back from ...
February 10th 2008
Tags:
General
One Comment
I came across a little quirk today when trying to change the position of a background-image with javascript. I tried and I tried but I just couldn't change the background image position with javascript.
Typically, you just use something like this to change an element's style with javascript, where attribute is ...
July 25th 2007
Tags: Uncategorized
No Comments
In the usual blog-style, a handy "Top x" list for the most commonly used (well, my most commonly used anyway) CSS selectors, giving you a useful CSS cheat sheet to save you time and hassle in developing your styles.
"*" - Any Element. Matches any element. Great for setting global ...
June 26th 2007
Tags: Uncategorized
2 Comments
I read an article today that appeared on the front page of digg about hiding parts of a HTML form with CSS to try and prevent spam. Its a nice idea, and the author claims that their "spam levels ... went down to zero". If it works for ...
May 9th 2007
Tags: Uncategorized
No Comments
So today Sun announced JavaFX. Curiously, lots of people are hailing it as "The end of AJAX" ...
Details are fairly sketchy at the moment, but from what I can tell JavaFX is basically just a scripting language for the SWING GUI library, with a few libraries thrown in to ...
April 29th 2007
Tags: Uncategorized
3 Comments
Transparency (or opacity if you want to call it that) in CSS is something I always forget how to do properly for some reason, so this blog post is partly just here to remind me how to do it next time!
As usual, Internet Explorer has a different technique to make ...
April 1st 2007
Tags: Uncategorized
No Comments
Recently I've often found myself thinking about the differences between a typical desktop application and a web-based application, not so much from the technical aspects but from the usability and presentation aspects.
In a typical desktop application, people tend to expect an application to look and largely work the same as ...
March 22nd 2007
Tags: Uncategorized
No Comments
I was browsing around today and came across the "google-code-prettify" Javascript and CSS code prettifier (download page) on Google Code. If you cant be bothered to look, it seems to be a fairly accomplished code-highlighting script - this is the description of the langauges supported from the Google Code site:
C ...
March 6th 2007
Tags: Uncategorized
3 Comments
I was working on some javascript code recently to automatically reformat a <code> tag into an <ol> list so each line of code was in a separate <li> and so got a "line number", as well as some other trickery to preserve indentation etc when I stumbled across a bug ...
February 13th 2007
Tags: Uncategorized
21 Comments
If you have been coding in CSS for any amount of time then you will have inevitably run into a situation where your CSS styled page looks great in one browser, but something is broken in another. Between Firefox, Internet Explorer 6 and Internet Explorer 7 there are a ...