Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If you're referencing line wrapping, wrapping the <pre> in a <div> with just two styles would work:

    display: block;
    overflow-x: auto;
That would allow the <pre> to overflow to the right and let the user scroll over.


Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: