Things You Don't Want to See in a CSS File

davorg on 2004-09-01T09:26:48

a:link {
	color: #000000;
	font-family: "Gill Sans MT", Verdana, Arial, Helvetica;
	font-size: 11pt;
	font-style: normal;
	font-weight: bold;
	text-decoration: blink;
	line-height: 13px;
}
Did you spot it? It's second from bottom - text-decoration: blink. That's guaranteed to stop people from wanting to look at your site for too long.

That's from a real site too. It's my MP Martin Linton's site. The CSS is here.

Idiots.


IE Blind

ajt on 2004-09-01T09:45:39

Only a total moron would do that! However, as most of the cluless masses (including presumably your MP, if he's ever actually used a computer) use a defective browser like IE, they won't even see the error. I believe that the use of blink means that it fails W3C WAI guidelines and is therefore in breach of UK accessability legislation...

Other things you don't want to see

mdxi on 2004-09-02T05:26:45

(1) font-family not ending in one of the generic classes of fonts ("sans-serif" in this case).
(2) font-size (or anything else font related) using points or pixels or any other units, really.

That flashing really is horrendous though

Glad you pointed out the blink...

illovich on 2004-09-16T21:30:15

I was sure you had a problem with

font-family: "Gill Sans MT" ;-)