-
Notifications
You must be signed in to change notification settings - Fork 191
Expand file tree
/
Copy pathScrollbar.js
More file actions
20 lines (17 loc) · 740 Bytes
/
Scrollbar.js
File metadata and controls
20 lines (17 loc) · 740 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
body { //aqui pode ser outro elemento específico que quiser
overflow-x: hidden; //se realmente quer impedir que tenha uma barra vertical.
overflow-y: scroll; //pode-se usar auto para deixar o browser decidir quando usar.
white-space: nowrap; //n]ao deixa quebrar a linha
}
body {
overflow-x: scroll;
overflow-y: hidden;
white-space: nowrap;
}
<img src="http://lorempixel.com/150/150/people/0/a/">
<img src="http://lorempixel.com/150/150/people/0/b/">
<img src="http://lorempixel.com/150/150/people/0/c/">
<img src="http://lorempixel.com/150/150/people/0/d/">
<img src="http://lorempixel.com/150/150/people/0/e/">
<img src="http://lorempixel.com/150/150/people/0/f/">
//https://pt.stackoverflow.com/q/50942/101