I am missing something really simple here so hopefully somebody can unspin my brain.
I have a page layout working OK but on applying the media breakpoints nothing changes. Below is an example of my CSS. You can see I am just altering the font size to try and get the thing working but nothing changes when altering the browser width. The p
font remains the same size regardless of the browser width.
Importantly - the regular Bootstrap responsiveness and page layout does happen, my own media instructions do not.
p {
font-size: 16px;
}
@media (min-width: 576px) {
p {
font-size: 116%;
}
}
@media (min-width: 768px) {
p {
font-size: 108%;
}
}
Another example is a carousel I have added. The media instructions only involve the height of the carousel. But like the example above - the carousel height remains the same no matter the broswer width.
#carouselMain {
height: 460px;
}
@media (min-width: 576px) {
#carouselMain {
height: 660px;
}
}
@media (min-width: 768px) {
#carouselMain {
height: 560px;
}
}
Thanks. I don't know why this should happen. A similar question has been asked before but the given answer doesn't seem to apply to this question.
an id like Sergiu answer
– Feb 25 '22 at 11:29