PHP Function to split a combined CSS attribute/value to several attributes
Posted
by Sandman
on Stack Overflow
See other posts from Stack Overflow
or by Sandman
Published on 2010-05-18T07:00:01Z
Indexed on
2010/05/18
7:00 UTC
Read the original article
Hit count: 249
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? :)
© Stack Overflow or respective owner