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

Unable to overwrite overflow-y to visible

$
0
0

I have an overflow-y set to scroll in one css master file, which i partially overwrite with another css for mobile version.

The first master css file has:

div.container {
  max-height: 100%;
  overflow-y: scroll;
}

Then in the second css file that partially overwrites a few properties i have

div.container {
  max-height: none;
  overflow-y: visible !important
}

Imports are as follows:

<link type="text/css" rel="stylesheet" href="<?php echo $href_root; ?>css/main-styles.css">
<link type="text/css" rel="stylesheet" href="<?php echo ($ismobile ? $href_root . 'css/main-styles-mobile.css' : '') ?>">

But it doesn't work. It is still showing a scroll bar, even when i overwrite it with overflow-y: hidden !important. What am i doing wrong??


Viewing all articles
Browse latest Browse all 72443

Trending Articles



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