Search notes:

Responsive design

Fixing "content wider than screen" on mobile devices

Use the <meta name="viewport" …> directive:
<meta name="viewport" content="width=device-width, initial-scale=1">
If the page contains images or program code listings that are wider than the mobile device, then the following CSS directives might help
#wide-elem {
   overflow: hidden;
}
The HTML element should be a block element (such as a <div>) in order for this to work.
In case of images:
img {
  max-width: 100%
}
However, the image will be shrunk to the width of the mobile if it is wider.

See also

CSS: creating responsive tables
HTML

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1741108107, '18.191.238.22', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/web/HTML/Responsive-design/index(59): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78