Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 70224

Fixing navbar collapse positioning and color on width adjustment

$
0
0

Code on here in my fiddle:

https://jsfiddle.net/zo8md2rq/

enter image description here

I have a collapsible navbar with my code shown in my fiddle.

I tried to have the css change on my nav on width adjustment, turning my color from orange to white and placing my collapsible to the right, but my CSS now does neither

@media (min-width: 768px) {
  .nav-color {
    color: white !important;
    float: right;
  }
}

I would like to accomplish:

  • Have the css change as soon as the navbar collapses too

  • Not use "min-width" if possible


Viewing all articles
Browse latest Browse all 70224

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>