A cautionary tale for anyone running their own web server - something I'd never considered previously.
We've all been there - you're setting up your web server, and request a bunch of IP addresses from your hosting provider. You then assign these IPs to your various web sites, and off you go...
But how many of you actually check the history of these IP addresses?
Read more »
Posted on 21 March, 2011, in
Miscellaneous, Quick Tips
A quick tip for when you’re designing a site with centered content.
If the content doesn’t reach to the bottom of the window, there’s no vertical scroll bar; if you then navigate to a longer page, you’ll see the content jump about 10px to the left as it’s centered in a slightly narrower window. Sometimes, you’ll even see this jump half-way through rendering a longer page.
To solve this, simply add this to your CSS:
html {
overflow-y: scroll;
}
Now, you’ll always have space reserved for the vertical scrollbar, whether or not it’s required; and you won’t see the sideways jumping any more.
Posted on 18 November, 2010, in
CSS, Quick Tips
I've only recently started using cfscript to code my components, and today ran into this little problem...
I have an Application.cfc, written in cfscript, and I want it to include a settings file which contains the different settings between development and production servers (so I can update the Application.cfc file without having to worry about altering settings before copying it to the live server).
Read more »
Posted on 22 August, 2010, in
ColdFusion, Quick Tips
I've just started playing with web fonts for a site redesign. I came across the following gotcha (thanks, Firebug, for alerting me to it!).
If you are running IIS 6 or higher on your web server, some of the fonts will be disabled by default.
Read more »
Posted on 10 April, 2010, in
CSS, Quick Tips
Wow – it’s been a while since I last posted…
This is just a quickie – a reminder for my own reference, but could also be useful to others.
I’m building a shop, and the email confirmations include the line:
Your credit card statement will show a payment to "MYDOMAIN.COM".
Which is fine, except that many mail clients (e.g. Apple Mail) will take MYDOMAIN.COM and link it as a URL – which I don’t want.
To avoid this, simply add a zero width space into the “URL” – for instance:
Your credit card statement will show a payment to "MYDOMAIN​.COM".
(That’s the HTML version. If you’re generating a plain text alternative (using CFML, of course), you’ll want to use #Chr(8203)#).
The text will now look identical – except it will not be linked by the mail client.
Posted on 9 February, 2010, in
HTML, Quick Tips