My website uses 4 breakpoints. When using the built-in Javascript 'Time Greeting' script, there doesn't seem to be a way to set the font size at each of the individual breakpoints to different values.
Is there a work-around, so that I can have larger fonts for wider viewports, and a reduced font size for phone/tablet viewports?
Thanks...
Javascript - Time Greeting font size
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
Re: Javascript - Time Greeting font size
You could add some CSS and use media queries to change the font size.
For example:
For example:
Code: Select all
<style>
@media (max-width:969px){#greeting{font-size:42px;}}
@media (max-width:767px){#greeting{font-size:24px;}}
</style>
Re: Javascript - Time Greeting font size
Thanks, Crispy...
That did the trick!
I had to work out the breakpoint settings, and at first confused points versus pixels, but after a bit of tweaking, it now works perfectly.
That did the trick!
I had to work out the breakpoint settings, and at first confused points versus pixels, but after a bit of tweaking, it now works perfectly.
