WordPress.org

Codex

Codex talk:Codex CSS

Suggest that we have a distinct way of highlighting code examples here. It may make pages easier to follow in that the page gets broken up that bit more - it is very f7f7f7 around here. I realise that readability is also an issue though.

Thinking about code, there is php, css and possibly xhtml that could be posted here when showing how things are done for example. Would the same colour throughout be good ? Or would a colour each be better ? I don't think we need a colour-fest going on, so if it is more than one, they would need to be carefully chosen. (Take those last two words as meaning 'no involvement from podz :) )

Author Unkown -- api-devlab 23:54, 14 Mar 2005 (UTC)

What is the point of this comment? --MDAWaffe - Talk 00:00, 15 Mar 2005 (UTC)

Contents

A couple of CSS ideas....

class="alternative"

.alternative { background-color: #BFEE90; border-top: 1px solid #488A00; border-bottom: 1px solid #488A00; padding: 10px; border-left: 1px solid #488A00; border-right: 1px solid #488A00; }

class="tip"

.tip { background-color: #FFFF99; border-top: 1px solid #FFCC00; border-bottom: 1px solid #FFCC00; padding: 10px; border-left: 1px solid #FFCC00; border-right: 1px solid #FFCC00; }

class="warning"

.warning { background-color: #FFA8A8; border-top: 1px solid #CD5C5C; border-bottom: 1px solid #CD5C5C; padding: 10px; border-left: 1px solid #CD5C5C; border-right: 1px solid #CD5C5C; }

class="highlight"

.highlight { background-color: #CCCCFF; border-top: 1px solid #003399; border-bottom: 1px solid #003399; padding: 10px; border-left: 1px solid #003399; border-right: 1px solid #003399; }