Why Responsive Media Queries in styles.css don’t work

hello everyone,

I have a little struggle with changing background color of the drop-down menu on mobile size version. I managed to change for the desktop resolution, but the mobile version is a little stubborn :frowning:

using “Inspect element” I can see it is;

@media (max-width: 768px) {
.navbar-fixed-top .navbar-collapse {
background: rgba(10, 10, 10, .9) !important;
}

with some reason I can not find this entry above in styles.css , not in bootstrap.css and nothing in woocommerce.css

all I want is to change this rgba(10, 10, 10, .9) in to rgba(255, 255, 255, 1)

I also added this in to “Additional CSS” section along with other entry’s with changed colors but no luck ..

Please is there anyone here to help me to tackle this little problem ?

please view the site on password; hello

Many thanks to all for any advise..

dan.

Welcome to this forum.

Just above your tag:


		.wr-megamenu-container.bg-tr {
			background: transparent !important;
		}
		.wr-megamenu-container ul.wr-mega-menu ul.sub-menu,
		.wr-megamenu-inner {
		    background: rgba(10, 10, 10, .9) !important;
		    color: #fff !important;
		}
		
		@media (max-width: 768px) {
			.navbar-fixed-top .navbar-collapse {
				background: rgba(10, 10, 10, .9) !important;
			}
		}
	


1 Like

thank you for your advise, but it still doesn’t change

from this;
@media (max-width: 768px) {
.navbar-fixed-top .navbar-collapse {
background: rgba(10, 10, 10, .9) !important;
}

to this:

@media (max-width: 768px) {
.navbar-fixed-top .navbar-collapse {
background: rgba(255, 255, 255, 1) !important;
}

best regards
dan

Are you not able to edit that line in the HTML file?

Leave a Comment