Posted by Toby Inkster on 07/06/06 17:45
Mitja Trampus wrote:
> code.snippet {
> display: block;
> white-space: pre;
> }
This is a bad idea. Think of non-CSS browsers.
(As it happens I do often use "display:block" on <code> elements, but
that's just to get the background colour to spread out nicely -- I still
use <pre>...</pre> for white space control.)
--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Navigation:
[Reply to this message]
|