Archive for the 'CSS' Category

The pre tag is great for taking text written and formatted somewhere else and making sure it looks right (ie, as the author intended). It’s commonly used for code snippets as it maintains line breaks and formatting (all those tab and newline characters).
I was pulling textual data from a database for a report and […]

Brian’s previous post reminded me about a mnemonic I use to remember how CSS borders/margins/paddings are defined (surely there’s a word for what I’m describing). Anyway, in a declaration such as:
#wrapper {
margin: 0px 0px 0px 0px;
}
The margin-top, margin-right, margin-bottom, and margin-left are all 0px, and are defined in that order.
To remember this, […]


You are currently browsing the Code in Focus weblog archives for the 'CSS' category.

Longer entries are truncated. Click the headline of an entry to read it in its entirety.
 

Bad Behavior has blocked 83 access attempts in the last 7 days.