Monday, June 22, 2009

Black and White

To make a block of white text on black background, use the following HTML and CSS code:

<div style="color:white; background-color:black; padding:4px">
This is more than an example of changing the background color. This is a declaration that, within the context of this blog (and serving as an analogy for real life), few things are necessarily permanent. As knowledge of CSS opens the doors of possibility on the web, so is the door open to those who know the Creator of all things. Let us always be willing to question the status quo. And as we test things, let those which are found to be firm be acknowledged as firm, and those which are weak be called weak. And should any be found to be useful but temporary, let us hold them with open hands.

One thing God has spoken,
two things have I heard:
that you, O God, are strong,

and that you, O Lord, are loving.
Surely you will reward each person
according to what he has done.

—Psalm 62:11-12

</div>

Explanation:
<div> = an HTML tag used for dividing text into sections
color = the color of the text (any color; ex. white, blue, #8A27EE)
background-color = the color of the background (same color choices as text color)
padding = helps keep the text away from the edge of the background color box