From: Christian Moe <mail@christianmoe.com>
To: Steinar Bang <sb@dod.no>
Cc: emacs-orgmode@gnu.org
Subject: Re: org2blog: get horizontal scrollbar on code examples?
Date: Sat, 04 Apr 2020 12:33:47 +0200 [thread overview]
Message-ID: <87369jmtf8.fsf@christianmoe.com> (raw)
In-Reply-To: <86r1x3r3uq.fsf@dod.no>
Try adding
.org-src-container .src { overflow: auto; white-space: nowrap }
to the CSS, e.g.:
#+html_head_extra: <style>.org-src-container .src { overflow: auto; white-space: nowrap }</style>
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 <dependency> 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/
next prev parent reply other threads:[~2020-04-04 10:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-04 9:34 org2blog: get horizontal scrollbar on code examples? Steinar Bang
2020-04-04 10:33 ` Christian Moe [this message]
2020-04-04 13:56 ` Steinar Bang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87369jmtf8.fsf@christianmoe.com \
--to=mail@christianmoe.com \
--cc=emacs-orgmode@gnu.org \
--cc=sb@dod.no \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).