MaggsWeb:7

www.maggsweb.com

Archive for the ‘ HTML ’ Category

Version them in their with their timestamp. This way, when they change, the link will change and the browser will reload the sitemap… Otherwise it will be fine to be cached as it wont have changed.

 
<link type='text/css' src='/styles/styles.css?v=<?=filemtime(DOC_ROOT."/styles_ie.css")?>' />

Add this into your .htaccess file…

?View Code APACHE
RewriteEngine On
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1

[More]

Displaying the day-part of the date, followed by the month etc. just looks plain wrong and lazy – ’20 September 2009′. ’20th’ would look much nicer and can be achieved without too much hard work. A simple function…
[More]

…like ‘Enter’ for instance.

[More]

This is another functionality that I have been looking or for a while. I haven’t tried it yet, but intend to add this to my default toolbox! I am sticking it here for now – and will update this when I have used it.

[More]

‘Bookmark Me’ is a sort of IE thing and doesn’t usually work in FireFox, Safari, Chrome, etc.. so as a FireFox user I’ve never bothered with a bookmark links before.
FireFox users know that Ctrl+D is the shortcut for these browsers, and that most ‘Bookmark Me’ links just aren’t work clicking – as they won’t work.

And then I found this…

[More]

In IE6 and sometimes in IE7 the background images flicker if they’re also an <a>.  A small edition to .htaccess overrides the browsers default to load the backgrounds every time.

[More]

Cold hard website errors are horrible and unnecessary. All you need is a few nice looking .html files in your directory somewhere, then use .htaccess to reditrect to these when there is an error. Obviously, no errors at all would be better…. :)
[More]

I have often looked at my sites on my mobile.  Some look good, others look really bad – usually down to some clever fancy-arse stuff that wouldn’t even work on a mobile.

So, I have finally found this article that reckons it is sussed.  I’m gonna try it out.
[More]

Shortcut Icon (favicon.ico)

February 11, 2009 | Comments | HTML

In short, a 16x16px bitmap, renamed, in the web root. Or is it?

This minimal approach does actually work, but done properly, they should have a few different size versions in the same file, so that not only do they show in the URL bar, and now more recently in the tabs as well (IE8+, FF3+), but also display a different (clearer) version when dragged to the desktop.
[More]