Damn you Notepad!
I have a bad habit of relying on Notepad to edit my CSS files. This bit me in the ass tonight. I don’t quite know what causes this, but my file automagically went from looking like this (this is only a small sampling of the screw-up):
#nav {font-family: "trebuchet ms", verdana, sans-serif;font-size: 11px;margin: 0px 0px 0px 0px;padding: 0;text-align: center;}#nav ul {border: 0;margin: 0;padding: 0;list-style-type: none;text-align: center;clear: left;}#nav ul li {display: block;float: left;text-align: center;text-transform: none;padding: 0;margin: 0;}#nav ul li a {background: #DCDCDC;width: 139px;height: 2em;border-left:1px solid #9F9A75;border-bottom:1px solid #9F9A75;border-right:none;padding: 0;margin: 0 0 10px 0;color: #666666;text-decoration: none;display: block;text-align: center;font-weight: normal;letter-spacing: 1px;line-height: 2em;voice-family: "\"}\"";voice-family: inherit;}#nav ul li a:hover {color: #9F9A75;background: #EEEEEE;}#nav a:active {background: #EEEEEE;color: #000;}#nav ul li#one a {border-left:none;}#nav ul li#five a {width:140px;}
to looking like this:
#nav { font-family: "trebuchet ms", verdana, sans-serif; font-size: 11px; margin: 0px 0px 0px 0px; padding: 0; text-align: center;}#nav ul { border: 0; margin: 0; padding: 0; list-style-type: none; text-align: center; clear: left;}#nav ul li { display: block; float: left; text-align: center; text-transform: none; padding: 0; margin: 0;}#nav ul li a { background: #DCDCDC; width: 139px; height: 2em; border-left:1px solid #9F9A75; border-bottom:1px solid #9F9A75; border-right:none; padding: 0; margin: 0 0 10px 0; color: #666666; text-decoration: none; display: block; text-align: center; font-weight: normal; letter-spacing: 1px; line-height: 2em; voice-family: "\"}\""; voice-family: inherit; }#nav ul li a:hover { color: #9F9A75; background: #EEEEEE;}#nav a:active { background: #EEEEEE; color: #000;}#nav ul li#one a { border-left:none;}#nav ul li#five a { width:140px;}
Yeah, that’s right, from 62 lines to 1. Does anyone know what the hell causes this? It’s like it removes the line breaks or something. Is it something I’m doing? Probably. I need to start using Dreamweaver to edit my CSS files I guess. Thank God for backups. I’m taking this as a sign to step away from wp-layout.css for a while.


