Font size overridden by WYSIWYG 20 (shows 24px but renders 32px)
Posted: Wed Apr 08, 2026 2:39 am
Hi,
I’m using WYSIWYG Web Builder and I’m having an issue with font sizes inside card elements.
In the editor, I set the font size of my text (for example 24px), but when I preview the page in the browser, the font size is different (it becomes 32px).
After inspecting the element in the browser, I noticed that WYSIWYG automatically generates CSS like this:
#coffeeCard2-card-item1 {
font-size: 32px;
}
This overrides the font size I set in the editor.
My questions are:
* Why does WYSIWYG apply its own font-size to these generated IDs?
* How can I prevent this behavior?
* Is there a recommended way to control font sizes consistently without manually overriding CSS for each element?
I’m trying to build a clean and consistent design, but these automatic styles make it difficult.
Any help or best practices would be greatly appreciated.
Thanks!
I’m using WYSIWYG Web Builder and I’m having an issue with font sizes inside card elements.
In the editor, I set the font size of my text (for example 24px), but when I preview the page in the browser, the font size is different (it becomes 32px).
After inspecting the element in the browser, I noticed that WYSIWYG automatically generates CSS like this:
#coffeeCard2-card-item1 {
font-size: 32px;
}
This overrides the font size I set in the editor.
My questions are:
* Why does WYSIWYG apply its own font-size to these generated IDs?
* How can I prevent this behavior?
* Is there a recommended way to control font sizes consistently without manually overriding CSS for each element?
I’m trying to build a clean and consistent design, but these automatic styles make it difficult.
Any help or best practices would be greatly appreciated.
Thanks!
