Answer the question
In order to leave comments, you need to log in
How to store css in database?
I want to create a website builder for myself.
Interested in a ready-made solution for validating and saving CSS property values in the database, as well as the subsequent generation of CSS styles from the received data.
At the moment I work only on the client - ReactJS. I fill out the form to add a div block, it turns out something like
{
id: 2,
type: 'div',
tagclass: '',
innertext: textexttext,
css : {
on_hover : {
border: {
size: 2,
type: 'solid',
color_html: '#333',
},
}
width: {
size: 8,
size_type: 'col'
},
border: {
size: 1,
type: 'solid',
color_html: '#cdcdcd',
},
padding : [25, 25, 25, 25],
margin : [25, 5, 25, 15]
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question