0

My question is related to CSS overflow-y:visible, overflow-x:scroll but I am still not able to solve my problem. I want a scrollable sidebar on y-axis with a visible tag hanging on the x-axis.

My HTML setup:

<div>
   <ul>
     <li>
     </li>
     <li>
       <div> ... //want it to be visible x
       </div>
     </li>
   </ul>
</div>

CSS:

I tried to use this:

.div { overflow-y:scroll; overflow-x:visible; }
.li { position:relative; }
.div { position:absolute; top:0px; left:-100px; display:inline-block; }
Matt-pow
  • 946
  • 4
  • 18
  • 31

1 Answers1

0

Generally if you want the to view the scroll in the div you should use

overflow-x:scroll;

Please make sure to add a class otherwise the scroll will appear in the outer div too, Or use the hierarchy.

div ul li div{ overflow-x:scroll }
.my-div-scroll{ overflow-x:scroll }
Srulik
  • 106
  • 1
  • 3