Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

es:Codex:Codex CSS

El propósito de esta página es documentar algunos estilos útiles, para hacer que las páginas del Codex sean más fáciles de leer. El código CSS debe ser válido, y si es aprobado por los administradores del Wiki, podrá ser usado sin problemas para todos los artículos.


class="basic"

.basic { background: #f7f7f7; border: 1px solid #000; margin: 0; padding: 5px; width: 100%; }


class="important"

.important { background: #f7f7f7; border: 2px dashed #f00; margin: 0; padding: 5px; text-align: center; width: 100%; }


class="code"

.code { background: #ccccff; border: 1px dashed #000; margin: 0; padding: 5px; text-align: left; width: 100%; }


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 :) )