Jochen Kächelin 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>" 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; /* ===> 12px? <=== francky */
> border: 1px;
> border-style: solid;
> border-color: #000000;
> width: 500px;
>}
>
>No linebrakes are inseret and I only get one line.
>Any suggestions?
>Thanx
>
|Hi Jochen,
I tried this local, and everything normal: in the box as expected.
But <code> is already a reserved name for an html-element. Think it is
forbidden to use that as class-name, and servers can have problems with
that. Will ".mycode" instead of ".code" help?
Now ||<code> is just the monospace-element! So you can also give a try to:
- - - - - -
code { background-color: ...; padding: ...; ...; ...; }
- - - - - - and in html:
||<code>Here are the monospace text items, for it goes about codes</code>
- - - - - -
Succes with the heavy developement!
francky
ps: there_is_not_by_accident_||somewhere_||a_long_line_without_spaces
(as a long url) in the txt of the code? ;-)
||
|
______________________________________________________________________
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/