Posted by Dave on

Scroll bars in HTML Boxes

Scroll bars in HTML Boxes

I am exploring text scrollbar. Here are my notes …

I have some css from here, which works fine.

.scroll-box {
  width: 650px; /* max width of the box, feel free to change this! */
  overflow-x: scroll;
  white-space: nowrap;
}

The first example is held as text in the wordpress data base, the 2nd is implemented as a code snip.

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxx

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

I am having problems with code, specifically python, because tabs and indents are significant.

This is hard with HTML, possibly the overflow property is a better way to do this.


Comments ( 2 )

  1. Analysing the 2019 Election Results |
    […] Final estimates of the Leave vote, or ‘Area interpolation and the UK’s referendum on EU memb…, by Chris Hanretty, in which he posts three spreadsheets detailing the referendum results by CLP. […]
  2. Consitituencies: Leave or Remain |
    […] Final estimates of the Leave vote, or ‘Area interpolation and the UK’s referendum on EU membersh…, by Chris Hanretty, on Medium in which he posts three spreadsheets detailing the referendum results by CLP. […]

This site uses Akismet to reduce spam. Learn how your comment data is processed.