1 |
Sven Vermeulen wrote: |
2 |
|
3 |
>Just a small note regarding text width: the Code Listings used throughout |
4 |
>various documents should have no-wrap activated. It's sensitive material |
5 |
>(such as commands) and needs to be interpreted by the user correctly (as the |
6 |
>author wants). Having word-wraps inside Code Listings might have disastrous |
7 |
>results. |
8 |
> |
9 |
> |
10 |
> |
11 |
The best solution for that IMO is something like the following CSS |
12 |
|
13 |
code {overflow:auto; display:block; white-space:pre;} |
14 |
|
15 |
This will generate little scrollboxes for codelistings that don't fit on |
16 |
the page width, preventing breakage of general site layout while still |
17 |
not mangeling codelistings, ever. |
18 |
|
19 |
|
20 |
-- |
21 |
www-redesign@g.o mailing list |