Previous Message
Next Message

DIV Attributes to show "code"

Sent by Jochen Kächelin on 12 January 2006 02:02


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>" without any CSS-commands linebrakes
are shown correct. But when I use my .css:

div.code {

		background-color: #DDDDDD;
		padding: 5px;
		margin: 5px;
		font-family: monospace;
		font-size: 12;
		border: 1px;
		border-style: solid;
		border-color: #000000;
		width: 500px;
}

No linebrakes are inseret and I only get one line.

Any suggestions?

Thanx

-- 
wlanhacking.de

______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
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/
Previous Message
Next Message

Message thread: