jblayney
asked on
media queries ignored in bootstrap
Hello,
I am writting a media query style and it is being ignored.
http://think.darkstarmedia.net/
Please see attached image which shows both the style and width of the screen. The screen width is 970 px, my style is everything under 992 px should use my new font sizes, but they are being ignored.
I am writting a media query style and it is being ignored.
http://think.darkstarmedia.net/
Please see attached image which shows both the style and width of the screen. The screen width is 970 px, my style is everything under 992 px should use my new font sizes, but they are being ignored.
@media only screen and (max-width : 992px){
.banner H1 {
font-size:32px;
}
.banner p {
font-size:22px;
}
a.banner-phone, a.banner-phone:active, a.banner-phone:link, a.banner-phone:visited {
font-size: 24px;
}
}
screen.jpg
It is working. For every screen less than 992px wide, the font-size is reduced to 32px for <h1> tags in the banner. <p> tags are reduced to 22px.
ASKER
Hello,
Thanks for taking a look.
Sorry, you are reading the screen shot wrong, that isn't firebug with the sizes, that is a screen shot of my CSS page in dreamweaver.
If you use firebug you will see that it isn't working, it stays at 36 pixels until I get to about 700 px wide
Thanks for taking a look.
Sorry, you are reading the screen shot wrong, that isn't firebug with the sizes, that is a screen shot of my CSS page in dreamweaver.
If you use firebug you will see that it isn't working, it stays at 36 pixels until I get to about 700 px wide
My screenshot is from Firebug and my screen size was 982px wide.
ASKER
Your right I see that now, but my screen size is 970, and it is still 36px
I also tested on chrome and safari and got the same results. if you look at my original file it shows the width at 970
If you messure the attached in photoshop, the container width is 970px as well
scrren-2.jpg
I also tested on chrome and safari and got the same results. if you look at my original file it shows the width at 970
If you messure the attached in photoshop, the container width is 970px as well
scrren-2.jpg
ASKER
the key is the phone number and icon, if I set that width to default font-size to 24 pixels, it will never wrap as it is in the screenshot, it only wraps if screen is 970 and font size is 30 pixels
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
That website you sent is perfect, thank you. I am using container sizer as screen size