Font size with css
Forum rules
IMPORTANT NOTE!!
DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.
PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
IMPORTANT NOTE!!
DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.
PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
-
-
- Posts: 191
- Joined: Mon May 13, 2019 9:15 pm
Font size with css
When i use a custom style and set the font size to 12 it still renders at 16 why would that be ?
I used to have a photographic memory but i ran out of film !!!
- BaconFries
-
- Posts: 5877
- Joined: Thu Aug 16, 2007 7:32 pm
-
-
- Posts: 191
- Joined: Mon May 13, 2019 9:15 pm
Re: Font size with css
Yes i see that but if i specify say 1.2em in the style setting it doesn't apply that font size, it still displays the #wb_Main_Text style
It seems the style doesn't get used unless i put !important
It seems the style doesn't get used unless i put !important
I used to have a photographic memory but i ran out of film !!!
Re: Font size with css
It also depends on where you code ends up being generated in the css file. If you are using global styles then this may be overwriting any code you've added as that is a separate css file.
-
-
- Posts: 191
- Joined: Mon May 13, 2019 9:15 pm
Re: Font size with css
How does one not use global styles. I have unchecked the Generate single css style sheet for global styles but still the custom style i create does not apply the font size to my page.
It will always come up as
https://prnt.sc/nxPlf1AY77uP
It will always come up as
https://prnt.sc/nxPlf1AY77uP
I used to have a photographic memory but i ran out of film !!!
Re: Font size with css
What code did you add?
Where did you add it?
And why are you using 1.2em?
Won't this effect the rest of your layout?
Where did you add it?
And why are you using 1.2em?
Won't this effect the rest of your layout?
-
-
- Posts: 191
- Joined: Mon May 13, 2019 9:15 pm
Re: Font size with css
I never really said i used 1.2 em
I made a style called maintext and selected the font-size as 12 (Just an arbitrary size) when i publish it adds all kinds of stuff to the style as you can see at wilstv.com but it won't size the font as specified in the style, the only way i can get that result is if i add font-size: 12px !important; in the custom styles section same with the padding, if i don't add the !important it won't apply the padding.
width: 72% !important;
padding: 10px 10px 10px 10px !important;
font-size: 15px;
I made a style called maintext and selected the font-size as 12 (Just an arbitrary size) when i publish it adds all kinds of stuff to the style as you can see at wilstv.com but it won't size the font as specified in the style, the only way i can get that result is if i add font-size: 12px !important; in the custom styles section same with the padding, if i don't add the !important it won't apply the padding.
width: 72% !important;
padding: 10px 10px 10px 10px !important;
font-size: 15px;
I used to have a photographic memory but i ran out of film !!!
Re: Font size with css
If you need to add !important then WWB's styles are most like added after you custom style.
Where did you add the code?
And why do you need to add custom code to set the font size?
Why not use the built-in styling option?
Do you have a demo project?
Where did you add the code?
And why do you need to add custom code to set the font size?
Why not use the built-in styling option?
Do you have a demo project?
Re: Font size with css
Thanks for sending the project.
You have applied the style to the object’s container, not the text itself (the characters).
So, the inline styles of the text will override the attributes of the global style.
If you use the ‘responsive text’ object then the style will also be applied to the text automatically.
Also, I do not understand why you set the ‘font size’ as custom style instead of the font size property of the style?
You have applied the style to the object’s container, not the text itself (the characters).
So, the inline styles of the text will override the attributes of the global style.
If you use the ‘responsive text’ object then the style will also be applied to the text automatically.
Also, I do not understand why you set the ‘font size’ as custom style instead of the font size property of the style?
- BaconFries
-
- Posts: 5877
- Joined: Thu Aug 16, 2007 7:32 pm
Re: Font size with css
When you select a font in the dropdown it is in points (pt) as it is in other software such as Microsoft Word but the output will always be in pixels (px) this is how it works so compatible for all browsers.
If you look at the chart I provided it shows this.
See previous replies from Pablo that explains this
If you look at the chart I provided it shows this.
See previous replies from Pablo that explains this
Why did you delete your post before explaining your have resolved