PHP Function to split a combined CSS attribute/value to several attributes
- by Sandman
Basically, I want this:
h2 {
font: bold 36px/2em "Times New Roman"
}
To this:
h2 {
font-size: 36px;
font-weight: bold;
line-height: 2em;
font-family: "Times New Roman"
}
And other variations, of course. Does anyone know of a function that does this so I don't have to code it myself? :)