Replies: 1 comment 1 reply
-
You should add a Device with that size (575px) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have created a created a grapesjs component like this
{
type: 'text',
attributes: { id: 'title'},
content:
<div>Hello world</div>
,style: {
'font-size': '34px',
}
},
font-size property is applied in desktop, now i need to change font-size for mobile for that i have written media query
@media only screen and (max-width: 575px) {
#title{
font-size: 17px !important
}
}
when i inspect element font-size 17 is applied but grapesjs editor is not showing font-size 17 .
it shows font-size 34 without clean sign, but applied property is 17 (checked in inspect element).
can any one tell me another way of doing this or tell me what i am doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions