Archive for the 'CSS' Category
Keeping Your Lines Wrapped When Using the Pre Tag
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 […]
CSS Helper: Trouble (TRBL)
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, […]
Search
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.

