Breaking long lines of command lines, on mobile.
I've got a page with a long line of code. It's wrapped in
<pre><code></code></pre>
. It is the widest part of the page if I keep minimizing the rest as it doesn't break. It happens to be a git clone
command, so it has a long URL on the end.
Is there a generally accepted place to break up the URL, and allow it to wrap? Do I need to specify something to make it typeset in a nice, obvious way to show that it was broken to display but shouldn't be on the command line?11 Replies
overflow: scroll;
try that
u need to give a fixed with the parent element. (the same one with overflow: scroll )
hmm.
Thank you. Now I shall figure out how to fixed-width a parent element.
why not auto?
setting max-width to 100% may be enough, depending on the styles applied to all the parents
Here's the page: https://night-vision-discord.github.io/website/starting-editing/
I haven't dropped it in to my codepen yet
where's the element?
The code and pre
Most of the way to the bottom. Specifically it's the
git clone
command.add this:
(you don't need the width on the
pre
)Thank you!
this type of thing is always a huge pita
Its all learning curve for me.
it will get easier with practice