Downscale Frontpage Header font in mobile view

October 2015 Joomla Template
Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Tue Dec 29, 2015 2:56 pm
Reply with quote
Report this post
Hi. How can I make the Frontpage Header module automatically downscale the headings when viewing in mobile view? If it doesn't downscale, the titles go outside the screen. Is it also possible to add a shadow to the text so the titles will be visible when there is a light colored background?
Frontpage Header.png
User avatar
Gold Boarder

GK User
Tue Dec 29, 2015 4:39 pm
Reply with quote
Report this post
Could you please post an url to your site?
User avatar
Moderator

GK User
Wed Dec 30, 2015 3:43 pm
Reply with quote
Report this post
User avatar
Gold Boarder

GK User
Thu Dec 31, 2015 11:16 am
Reply with quote
Report this post
You have css compression enabled so I can't see exactly what could be done, but please try this code in override.css:
Code: Select all
@media (max-width: 640px){
.gkNspPM-TechNewsHeader2 .gkTitle {
    font-size: 1.4rem !important;
    line-height: 1.3;
}
}

It should set smaller font for screens up to 640px width.
User avatar
Moderator

GK User
Thu Dec 31, 2015 12:45 pm
Reply with quote
Report this post
Thanx! It worked great! Is it also possible to add a shadow the text so it will be more visible?
User avatar
Gold Boarder

GK User
Thu Dec 31, 2015 2:00 pm
Reply with quote
Report this post
You can use same css selector and css text shadow online generator:
http://css3gen.com/text-shadow/
User avatar
Moderator

GK User
Thu Dec 31, 2015 2:29 pm
Reply with quote
Report this post
Thanx! :)
User avatar
Gold Boarder

GK User
Thu Dec 31, 2015 2:51 pm
Reply with quote
Report this post
If you have any additional questions regarding this topic, please let me know.
User avatar
Moderator


cron