Hey all - sorry about not responding, turns out that even though I was mobile I was just to frigging happy being offline to make much use of my new broadband card to hook up.
Bomps - here is a bit of production CSS to look at (take from a bunch of different places in my code, this wouldn't necessary all be on one page, but gives a nice idea of what it all looks like:
<style>
<style type="text/css">
.arial { font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; line-height: 120%; }
.normal { font-weight: normal; }
.bold { font-weight: bold; }
.wt { color: #FFFFFF; }
.pad { padding: 1px 5px 1px 5px; }
A.wt { text-decoration: none; }
A.wt:HOVER { background-color: #671218; }
.bk { color: #220004; }
A.bk { text-decoration: none; }
A.bk:HOVER { background-color: #c78289; color: #ffffff; }
.s9 { font-size: 9px; }
.s10 { font-size: 10px; }
.s11 { font-size: 11px; }
.s12 { font-size: 12px; }
.s14 { font-size: 14px; }
.s16 { font-size: 16px; }
.s18 { font-size: 18px; }
.s20 { font-size: 20px; }
.s24 { font-size:24px; }
.left { text-align: left; }
.center { text-align: center; }
.right { text-align: right; }
body {
margin: 0px 0px 0px 0px;
background-image: url('/graphics/bgtile.gif');
background-repeat: repeat;
}
#main {
padding: 10px 10px 10px 10px;
}
.placard {
background-color: #ffffff;
border-style: solid;
border-color: #000000;
border-width: 1px 3px 3px 1px;
padding: 5px 10px 20px 10px;
}
#clientArea {
padding: 0px 30px 40px 40px;
}
</style>
</style>
I am pretty consistent about my spacing, but there is no really strong standard out there for spacing / line breaking - I just write it so that it looks right.
These examples are all valid:
A.bk:HOVER { background-color: #c78289; color: #ffffff; }
A.bk:HOVER {
background-color: #c78289; color: #ffffff; }
A.bk:HOVER
{
background-color: #c78289;
color: #ffffff;
}
A.bk:HOVER{background-color:#c78289;color:#ffffff;}
I think your example of
/(^[^#.]\w+\{.*?\})/msg
is really close: I'd add that there *may* be white space between the class name and the first squiggly brace, but that's about it I think.
/p