From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ns389230.ip-176-31-101.eu ([91.121.113.132]) by ns368062.ip-94-23-30.eu with LMTP id kG0ONYFiiF5GDQwAbb5zcA (envelope-from ) for ; Sat, 04 Apr 2020 10:33:37 +0000 Received: from aspmx1.migadu.com ([91.121.113.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) by ns389230.ip-176-31-101.eu (Dovecot) with LMTP id QkixJ1BSiF5tHgAAhCaIAw ; Sat, 04 Apr 2020 12:33:37 +0200 Received: (Migadu outbound); Sat, 04 Apr 2020 12:33:37 +0200 Authentication-Results: aspmx1.migadu.com; iprev=pass; spf=pass smtp.mailfrom=gnu.org Received-SPF: Pass (aspmx1.migadu.com: domain of gnu.org designates 209.51.188.17 as permitted sender) receiver=aspmx1.migadu.com; identity=mailfrom; client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from= Received-SPF: None (aspmx1.migadu.com: domain of lists.gnu.org does not designate 209.51.188.17 as permitted sender) receiver=aspmx1.migadu.com; identity=helo; client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from= X-Haraka-FCrDNS: lists.gnu.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by aspmx1.migadu.com (Haraka/2.8.20) with ESMTPS id E7041B3F-AA99-4AED-BF0C-118B8F6E94BF.1 envelope-from (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 verify=FAIL); Sat, 04 Apr 2020 12:33:37 +0200 Received: from localhost ([::1]:37308 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jKg7K-0002xO-Id for larch@yhetil.org; Sat, 04 Apr 2020 06:33:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38501) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jKg6z-0002vw-2b for emacs-orgmode@gnu.org; Sat, 04 Apr 2020 06:33:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jKg6x-0007JL-6f for emacs-orgmode@gnu.org; Sat, 04 Apr 2020 06:33:12 -0400 Received: from mailer-211-194.hitrost.net ([91.185.211.194]:62190) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jKg6x-0007Ec-0Z for emacs-orgmode@gnu.org; Sat, 04 Apr 2020 06:33:11 -0400 Received: from [84.20.244.182] (helo=Tauriel) by b1.hitrost.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92) (envelope-from ) id 1jKg6t-00ExsO-5w; Sat, 04 Apr 2020 12:33:07 +0200 References: <86r1x3r3uq.fsf@dod.no> User-agent: mu4e 0.9.19; emacs 25.3.2 From: Christian Moe To: Steinar Bang Subject: Re: org2blog: get horizontal scrollbar on code examples? In-reply-to: <86r1x3r3uq.fsf@dod.no> Date: Sat, 04 Apr 2020 12:33:47 +0200 Message-ID: <87369jmtf8.fsf@christianmoe.com> MIME-Version: 1.0 Content-Type: text/plain X-GeoIP: Country [IP], SI [84.20.244.182] X-Antivirus-Scanner: Clean mail though you should still use an Antivirus X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 91.185.211.194 X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Haraka-ASN: 6939 209.51.160.0/19 X-Rspamd-Score: -4.70253 X-TUID: q49shtCJRul8 Try adding .org-src-container .src { overflow: auto; white-space: nowrap } to the CSS, e.g.: #+html_head_extra: Cheers, Christian Steinar Bang writes: > Does anyone know of a way to get horizontal scrollbars on code examples, > instead of line breaks? > > I try to make code examples as horizontally compact, but sometimes > that's not enough, see e.g. some maven elements here, and > the maven command line examples: > https://steinar.bang.priv.no/2020/03/30/how-to-get-test-coverage-back-in-sonarcloud-maven-builds/