Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki talk:Common.css

Discussion page
Revision as of 22:13, 10 March 2007 by Sulfur (talk | contribs) (CSS addition for the {{real world}} template...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

CSS Updates?

A couple of CSS updates that might be worth adding.

For the {{real world}} template, you might want something like this to have it appear in the upper right corner of the article:

/***********************************************************
** DIV: ARTICLETYPE
*/
div.articletype {
	font-size: smaller;
	padding-top: 0em;
	padding-bottom: 0em;
	float: right;
	position: absolute;
	right: 1em;
	top: 0em;
	white-space: nowrap;
	text-align: center;
	border:1px solid #AAAAAA;
	background-color: #222222;
	line-height: 130%;
	margin: 1em auto 0.5em auto;
	clear:both;
}

div.articletype table {
	background-color: transparent;
	float: left;
	padding: 1px; 
}

Also, it's worth putting a <pre> tag at the top (in a commented out section!) and its closing tag at the bottom of the CSS file. That allows it to look a bit cleaner when viewing the "page" itself, rather than having everything line wrapping. -- Sulfur 22:13, 10 March 2007 (UTC)

Cookies help us deliver our services. By using our services, you agree to our use of cookies.