I am creating a site and want it to be responsive so I am using bootstrap 3. However, the h1 tag on the privacy policy page and about page come out of the container on small mobile devices since the word is too large. Is there a way I can make the h1 tag reduce in size to fit in the container on smaller mobile devices ? The site is muscadinewinerecipe.com if anyone wants to view what I'm talking about. It's the about page and privacy policy page.
相关问题
- Adding a timeout to a render function in ReactJS
-
Why does the box-shadow property not apply to a
- Add animation to jQuery function Interval
- jQuery hover to slide?
- Issue with star rating css
I've had the same problem, which I've solved with jQuery:
The ratio can be adjusted by replacing the value
17
and it can be used for other tags by changing theh1
.For Boostrap 4 you can use this mixin collection which I created for myself - very handy one https://github.com/Omi0/boostrap-mixins
You can use this :
CSS :
DEMO : http://jsfiddle.net/ckq04r5q/
Or if you want more browser compatibiliy you can sibling your h1 with id or class and reduce font-size with media query on < 768px
CSS :
When your screen as less to 768px of width the property has running