On 12/01/06, Jochen Kächelin <[EMAIL PROTECTED]> wrote:
> I want to setup a div-css to show code (text in grey boxes) like
> on this site:
>
> http://www.debian-administration.org/articles/326
> When I use "<pre>....</pre>"
Why aren't you using <pre>? This is exactly what it is designed for.
> without any CSS-commands linebrakes
> are shown correct. But when I use my .css:
>
> div.code {
> font-size: 12;
12 what? Monkeys? The w3c provide a pretty good validation tool for CSS.
font-size: 100%;
> No linebrakes are inseret and I only get one line.
Why would they be? You aren't using <pre>. You aren't using any CSS
that might influence the treatment of white space.
> Any suggestions?
Use a pre. (I could also point you at the white-space property, but
pre is the correct solution)
--
David Dorward <http://dorward.me.uk><http://blog.dorward.me.uk>
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/