Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to display horizontal scrollbar without go down to the page

I have a webpage contains 100s of data listed vertically and horizontally. I have a css code for scroll bar as follows:

.well {
overflow: auto;
}

User always need to scroll down to find the horizotal scroll bar. Is there anyway to prevent it, so that user dont need to go all the way down to find his scroll bar?

like image 243
vellattukudy Avatar asked Feb 25 '16 09:02

vellattukudy


People also ask

How do I make my horizontal scroll bar visible?

Click File > Options. On the Advanced tab, scroll to the Display section. Select Show horizontal scroll bar and Show vertical scroll bar, and then click OK.

How do I change the position of the scroll bar?

We can use the CSS “::-webkit-scrollbar” property which is responsible for changing the shape, color, size, shade, shadow, etc. of the scroll bar. But, here the property which we will use is the direction property of CSS for changing the position of the scroll bar.

How do I restrict horizontal scrolling?

To hide the horizontal scrollbar and prevent horizontal scrolling, use overflow-x: hidden: HTML. CSS.


3 Answers

If you have your data inside a block element in div and you want user dont need to go all the way down to find his scroll bar, then give it hyperlink " href="divid". when user will land on that page from any link http://exampl/#divid it will land to that div automatically.

like image 189
Fawad Ali Avatar answered Oct 10 '22 07:10

Fawad Ali


If you have your data inside a block element in HTML, you can give it a fixed height using the css height property. And then use overflow-x property to add horizontal scroll bar.

.well {
   height: 200px;
   overflow-x: scroll;
}
like image 32
Aravind Raj Mahadevan Avatar answered Oct 10 '22 06:10

Aravind Raj Mahadevan


* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
div { white-space: pre; }

section {
  max-height: 100%;
  overflow: auto;
}
<section>
<h1>Some content</h1>
<div>
Hi guys I have a webpage contains 100s of data listed vertically and horizontally. I have a css code for scroll bar as follows:

.well {
  overflow: auto;
}

User always need to scroll down to find the horizotal scroll bar. Is there anyway to prevent it, so that user dont need to go all the way down to find his scroll bar? Any idea guys? Thanks in advance.
</div>
<div>
Hi guys I have a webpage contains 100s of data listed vertically and horizontally. I have a css code for scroll bar as follows:

.well {
  overflow: auto;
}

User always need to scroll down to find the horizotal scroll bar. Is there anyway to prevent it, so that user dont need to go all the way down to find his scroll bar? Any idea guys? Thanks in advance.
</div>
<div>
Hi guys I have a webpage contains 100s of data listed vertically and horizontally. I have a css code for scroll bar as follows:

.well {
  overflow: auto;
}

User always need to scroll down to find the horizotal scroll bar. Is there anyway to prevent it, so that user dont need to go all the way down to find his scroll bar? Any idea guys? Thanks in advance.
</div>
<div>
Hi guys I have a webpage contains 100s of data listed vertically and horizontally. I have a css code for scroll bar as follows:

.well {
  overflow: auto;
}

User always need to scroll down to find the horizotal scroll bar. Is there anyway to prevent it, so that user dont need to go all the way down to find his scroll bar? Any idea guys? Thanks in advance.
</div>
<div>
Hi guys I have a webpage contains 100s of data listed vertically and horizontally. I have a css code for scroll bar as follows:

.well {
  overflow: auto;
}

User always need to scroll down to find the horizotal scroll bar. Is there anyway to prevent it, so that user dont need to go all the way down to find his scroll bar? Any idea guys? Thanks in advance.
</div>
<div>
Hi guys I have a webpage contains 100s of data listed vertically and horizontally. I have a css code for scroll bar as follows:

.well {
  overflow: auto;
}

User always need to scroll down to find the horizotal scroll bar. Is there anyway to prevent it, so that user dont need to go all the way down to find his scroll bar? Any idea guys? Thanks in advance.
</div>
<div>
Hi guys I have a webpage contains 100s of data listed vertically and horizontally. I have a css code for scroll bar as follows:

.well {
  overflow: auto;
}

User always need to scroll down to find the horizotal scroll bar. Is there anyway to prevent it, so that user dont need to go all the way down to find his scroll bar? Any idea guys? Thanks in advance.
</div>
<div>
Hi guys I have a webpage contains 100s of data listed vertically and horizontally. I have a css code for scroll bar as follows:

.well {
  overflow: auto;
}

User always need to scroll down to find the horizotal scroll bar. Is there anyway to prevent it, so that user dont need to go all the way down to find his scroll bar? Any idea guys? Thanks in advance.
</div>
<div>
Hi guys I have a webpage contains 100s of data listed vertically and horizontally. I have a css code for scroll bar as follows:

.well {
  overflow: auto;
}

User always need to scroll down to find the horizotal scroll bar. Is there anyway to prevent it, so that user dont need to go all the way down to find his scroll bar? Any idea guys? Thanks in advance.
</div>
<div>
Hi guys I have a webpage contains 100s of data listed vertically and horizontally. I have a css code for scroll bar as follows:

.well {
  overflow: auto;
}

User always need to scroll down to find the horizotal scroll bar. Is there anyway to prevent it, so that user dont need to go all the way down to find his scroll bar? Any idea guys? Thanks in advance.
</div>
<div>
Hi guys I have a webpage contains 100s of data listed vertically and horizontally. I have a css code for scroll bar as follows:

.well {
  overflow: auto;
}

User always need to scroll down to find the horizotal scroll bar. Is there anyway to prevent it, so that user dont need to go all the way down to find his scroll bar? Any idea guys? Thanks in advance.
</div>
<div>
Hi guys I have a webpage contains 100s of data listed vertically and horizontally. I have a css code for scroll bar as follows:

.well {
  overflow: auto;
}

User always need to scroll down to find the horizotal scroll bar. Is there anyway to prevent it, so that user dont need to go all the way down to find his scroll bar? Any idea guys? Thanks in advance.
</div>
</section>

  
<section>
<h1>Some content</h1>
<div>
Hi guys I have a webpage contains 100s of data listed vertically and horizontally. I have a css code for scroll bar as follows:

.well {
  overflow: auto;
}

User always need to scroll down to find the horizotal scroll bar. Is there anyway to prevent it, so that user dont need to go all the way down to find his scroll bar? Any idea guys? Thanks in advance.
</div>
<div>
Hi guys I have a webpage contains 100s of data listed vertically and horizontally. I have a css code for scroll bar as follows:

.well {
  overflow: auto;
}

User always need to scroll down to find the horizotal scroll bar. Is there anyway to prevent it, so that user dont need to go all the way down to find his scroll bar? Any idea guys? Thanks in advance.
</div>
<div>
Hi guys I have a webpage contains 100s of data listed vertically and horizontally. I have a css code for scroll bar as follows:

.well {
  overflow: auto;
}

User always need to scroll down to find the horizotal scroll bar. Is there anyway to prevent it, so that user dont need to go all the way down to find his scroll bar? Any idea guys? Thanks in advance.
</div>
<div>
Hi guys I have a webpage contains 100s of data listed vertically and horizontally. I have a css code for scroll bar as follows:

.well {
  overflow: auto;
}

User always need to scroll down to find the horizotal scroll bar. Is there anyway to prevent it, so that user dont need to go all the way down to find his scroll bar? Any idea guys? Thanks in advance.
</div>
<div>
Hi guys I have a webpage contains 100s of data listed vertically and horizontally. I have a css code for scroll bar as follows:

.well {
  overflow: auto;
}

User always need to scroll down to find the horizotal scroll bar. Is there anyway to prevent it, so that user dont need to go all the way down to find his scroll bar? Any idea guys? Thanks in advance.
</div>
<div>
Hi guys I have a webpage contains 100s of data listed vertically and horizontally. I have a css code for scroll bar as follows:

.well {
  overflow: auto;
}

User always need to scroll down to find the horizotal scroll bar. Is there anyway to prevent it, so that user dont need to go all the way down to find his scroll bar? Any idea guys? Thanks in advance.
</div>
<div>
Hi guys I have a webpage contains 100s of data listed vertically and horizontally. I have a css code for scroll bar as follows:

.well {
  overflow: auto;
}

User always need to scroll down to find the horizotal scroll bar. Is there anyway to prevent it, so that user dont need to go all the way down to find his scroll bar? Any idea guys? Thanks in advance.
</div>
<div>
Hi guys I have a webpage contains 100s of data listed vertically and horizontally. I have a css code for scroll bar as follows:

.well {
  overflow: auto;
}

User always need to scroll down to find the horizotal scroll bar. Is there anyway to prevent it, so that user dont need to go all the way down to find his scroll bar? Any idea guys? Thanks in advance.
</div>
<div>
Hi guys I have a webpage contains 100s of data listed vertically and horizontally. I have a css code for scroll bar as follows:

.well {
  overflow: auto;
}

User always need to scroll down to find the horizotal scroll bar. Is there anyway to prevent it, so that user dont need to go all the way down to find his scroll bar? Any idea guys? Thanks in advance.
</div>
<div>
Hi guys I have a webpage contains 100s of data listed vertically and horizontally. I have a css code for scroll bar as follows:

.well {
  overflow: auto;
}

User always need to scroll down to find the horizotal scroll bar. Is there anyway to prevent it, so that user dont need to go all the way down to find his scroll bar? Any idea guys? Thanks in advance.
</div>
<div>
Hi guys I have a webpage contains 100s of data listed vertically and horizontally. I have a css code for scroll bar as follows:

.well {
  overflow: auto;
}

User always need to scroll down to find the horizotal scroll bar. Is there anyway to prevent it, so that user dont need to go all the way down to find his scroll bar? Any idea guys? Thanks in advance.
</div>
<div>
Hi guys I have a webpage contains 100s of data listed vertically and horizontally. I have a css code for scroll bar as follows:

.well {
  overflow: auto;
}

User always need to scroll down to find the horizotal scroll bar. Is there anyway to prevent it, so that user dont need to go all the way down to find his scroll bar? Any idea guys? Thanks in advance.
</div>
</section>
like image 1
Qwertiy Avatar answered Oct 10 '22 07:10

Qwertiy