Mailing List Archive

nice grey dashed boxes
You know how on the Wikipedia.com encyclopedia they have those nice
grey boxes with dashed borders to show code? How do you make those?
I know how to make regular tables..but is there any predefined
tablecode for that specific table, or do I have to adjust the XHTML
style for each and every table to get that exact look? Thanks!

--
Gaurav Chaturvedi
Web/Graphic Designer
JAVA Programmer
Re: nice grey dashed boxes [ In reply to ]
Does wiki support CSS? If so that would be the easiest way to do it.
----- Original Message -----
From: "Gaurav Chaturvedi" <mesaana@gmail.com>
To: <mediawiki-l@Wikimedia.org>
Sent: Thursday, September 02, 2004 7:24 PM
Subject: [Mediawiki-l] nice grey dashed boxes


> You know how on the Wikipedia.com encyclopedia they have those nice
> grey boxes with dashed borders to show code? How do you make those?
> I know how to make regular tables..but is there any predefined
> tablecode for that specific table, or do I have to adjust the XHTML
> style for each and every table to get that exact look? Thanks!
>
> --
> Gaurav Chaturvedi
> Web/Graphic Designer
> JAVA Programmer
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l@Wikimedia.org
> http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
>
Re: nice grey dashed boxes [ In reply to ]
Hi,

> You know how on the Wikipedia.com encyclopedia they have those nice
> grey boxes with dashed borders to show code? How do you make those?

It was default on my (current) mediawiki installation with
<pre>...</pre> and monobook style.

Patrick
Re: Re: nice grey dashed boxes [ In reply to ]
> > You know how on the Wikipedia.com encyclopedia they have those nice
> > grey boxes with dashed borders to show code? How do you make those?
>
> It was default on my (current) mediawiki installation with
> <pre>...</pre> and monobook style.

Yep, that's the trick: they're not tables, but the CSS rule that the
MonoBook skin applies to <pre> (and <code>, too, I think) blocks. The
nice-'n'-easy wiki syntax for those is putting a space at the
beginning of each line of text/code/whatever. Consecutive lines that
all have a space in front of them will be treated as one block of
pre-formatted text, and thus have one nice big grey dotty border round
them.

HTH
--
[IMSoP]