-
-
Save divyang4481/12beeff11504d8400fa9553584854f41 to your computer and use it in GitHub Desktop.
Overflow scroll horizontal - No FlexBox
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Overflow scroll horizontal - No FlexBox | |
*/ | |
.container { | |
width:100%; | |
height: 220px; | |
border: 3px dotted; | |
overflow-x: scroll; | |
-webkit-overflow-scrolling: touch; | |
} | |
ul { | |
max-width: 99999px; | |
width: 500%; | |
list-style: none; | |
margin: 0; | |
padding: 0; | |
/*display: -webkit-box;*/ | |
} | |
li { | |
border: 1px solid red; | |
width: 300px; | |
height: 200px; | |
background: hsla( 0, 100%, 50%, 0.1 ); | |
float: left; | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- content to be placed inside <body>…</body> --> | |
<div class="container"> | |
<ul> | |
<li></li> | |
<li></li> | |
<li></li> | |
<li></li> | |
<li></li> | |
<li></li> | |
<li></li> | |
<li></li> | |
<li></li> | |
<li></li> | |
<li></li> | |
<li></li> | |
</ul> | |
</div> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// alert('Hello world!'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment