OC 2
On my homepage I have text made in a Html module. A part of the text is h1. I understand that the font size of the h1 is set in stylesheet.css.
On desktop it looks good but on a mobile device I would like to reduce the font size.
Is it possible to reduce the h1 font size ONLY on the homepage and ONLY om mobile devices?
On my homepage I have text made in a Html module. A part of the text is h1. I understand that the font size of the h1 is set in stylesheet.css.
On desktop it looks good but on a mobile device I would like to reduce the font size.
Is it possible to reduce the h1 font size ONLY on the homepage and ONLY om mobile devices?
yes, it's possible
using media query :
read more at :
https://www.tutorialrepublic.com/css-tu ... ueries.php
https://www.w3schools.com/css/css3_mediaqueries_ex.asp
For quick, professional OpenCart support
Online
contact me on skype : dparakhiya_1
email : dipneshp@gmail.com
Media query works for ALL devices, not only mobile. It only checks for window size.
Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com
I mean this is the way you fix.
this is not a full answer
I gave a just way to solve this
For quick, professional OpenCart support
Online
contact me on skype : dparakhiya_1
email : dipneshp@gmail.com
With CSS you can only limit the style definitions to certain screen resolutions. To limit them by devices, PHP has to be used. Not sure, if the guy really needs to limit it by devices.dparakhiya wrote: ↑Tue May 21, 2019 3:52 pmI mean this is the way you fix.
this is not a full answer
I gave a just way to solve this
Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com
Who is online
Users browsing this forum: No registered users and 18 guests