Showing posts with label Scroll. Show all posts
Showing posts with label Scroll. Show all posts

10 July 2022

How to limit width of table to within screen width with html and css?

How to limit width of a wide table to within screen width with html and css?

Solution: Do the following 2 things

1. <table style='table-layout: fixed'>

2. Set width for every columns in the first row (you can leave the last column, or any one column of all)

<thead>
  <tr>
    <th style='width: 5%; >blah...</th>
    <th style='width: 10%; >blah...</th>
    <th style='width: 25%; >blah...</th>
    <th style='width: 25%; >blah...</th>
    <th>blah...</th>
  </tr>
</thead>

That is all.

27 July 2017

How to Stop Scrolling in Linux?

How to Stop Scrolling in Linux?

 ls | more although most people use the ls | less command as it has more features, such as scrolling back as well as forwards, and searching for text.
To scroll forwards a screen press space. To scroll back a screen press 'b'. To search for some text type /something.
And as always man less for more details.

How to Stop Scrolling in MySQL?

How to Stop Scrolling in MySQL?

 > mysql -p [database]
    Enter password:
    mysql> pager more;
    PAGER set to more
    mysql> select * from [table];
    ...data...
    ...data...
    --More--

    You can use 'less', or 'more', or whatever other pager you want to use.