Id'e probably be inclined to create to tables, one for the name of your defintion, and one to store all the key - value attributes. eg;
CREATE TABLE style (
id INT PRIMARY KEY,
def VARCHAR(80)
)
CREATE TABLE attributes (
id INT PRIMARY KEY,
style_d INT,
att VARCHAR(80),
val VARCHAR(80)
)
Then... to define a style such as...
html {
margin: 0px;
padding: 0px;
}
You would simply insert data like...
INSERT INTO style (def) VALUES ('html');
INSERT INTO attributes (style_id,att,val) VALUES (1,'margin','0px');
INSERT INTO attributes (style_id,att,val) VALUES (1,'padding','0px');
This assumes that the definition for html has an id of 1.