Gentoo Archives: www-redesign

From: Stefan Huszics <sauron@×××××××.se>
To: www-redesign@××××××××××××.org
Subject: Re: [www-redesign] Fontsize, linewidth & what's new underlying layout
Date: Sun, 09 Jan 2005 10:06:55
Message-Id: 41E1023F.2040303@pp.sbbs.se
In Reply to: Re: [www-redesign] Fontsize, linewidth & what's new underlying layout by Sven Vermeulen
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

Replies

Subject Author
[www-redesign] new guide layout and updated about and news - jan 10 Michael Curtis Napier <curtis119@×××××.com>