I am puzzled as to how media queries work within this program. I've coded my own media queries (by hand) and they work. However, when I try to apply them to Bootstrap Studio, something goes awry. Uh oh! ?
When I try out the various screen size options, I only see the font size (1.5em) from the media query. However, with larger screens, I should see the 3em font size, which I don't. Anything that I'm missing or overlooking here?
Any ideas or guidance would be appreciated! ? Thank you.
I am familiar with the basics of Bootstrap, but when it comes to text, I don't believe Bootstrap automatically scales it. I am wanting to scale text based upon the various screen sizes, but my media queries aren't working as expected.
I searched, but didn't find anything. I might of used the wrong keywords, etc.
I did some more testing and noticed the following:
If all the H2 selectors have media queries applied to them, it works. However, if I have one H2 (without a media query applied to it), it overrides all H2 selectors with media queries applied. (I also tried changing the order of the selectors in the CSS script to see if that made a difference -- it strangely didn't.)
Ugh... ditch the ems. You could also do something like this...
h1 {
font-size: calc(24px + 1vw);
}
This will scale up the text proportionately with the size of the screen