To make a scroll box with a horizontal scroll, you need to use overflow-x:scroll;. This basically tells your browser to create scroll bars on the x (horizontal) axis, whenever the contents of the container is too wide. Here, we make our content too wide by setting it's width to 250 percent - that's 250 percent of its parent container (the div).
To make a scroll box with a horizontal scroll, you need to use overflow-x:scroll;. This basically tells your browser to create scroll bars on the x (horizontal) axis, whenever the contents of the container is too wide. Here, we make our content too wide by setting it's width to 250 percent - that's 250 percent of its parent container (the div)

Catatan:
overflow-x: scroll; overflow-y: hidden bila ingin horisontal scrollnya saja
overflow-y: scroll; overflow-x: hidden bila ingin vertical scrollnya saja

0 komentar:

Posting Komentar

 

Pemilik Blog

Foto saya
Pelaku usaha budidaya jamur tiram di Desa Kalimanggis, Kec. Subah, Kab. Batang, Jateng.
Hp 085226144218
Pin d928427be
Fb Hudamagazine@gmail.com