RSS - Latest posts Archive for 2009

Home » Archive for 2009
22Feb
2009

Firefox ignores tabs but not spaces in a pre tag

Sometimes HTML can be so frustrating. I love tabs in my code, however while styling the new blog theme I run into a Firefox only problem - despite being in a <pre> tag tabs would be ignored.

I found references to this werid behaviour, however it seemed to affect the displayed indentation for both tabs and spaces, and not ignore one while adhering to the other.

The solution actually turned out quite simple. The only thing you needed was an element inside the <pre> tag with the display: block; property set. And you don’t even need to move the padding away from the <pre> tag.

Categories:

22Feb
2009

How To Use the Strong Ownership List

Some time ago I wrote about the idea of the Strong Ownership List approach. A recent comment on that post has made me realize that for the idea to be better understood and easier to apply I probably should describe the process it involves in more detail. (more…)

Categories:

19Feb
2009

Improving Design by Using a Grid System

When I first heard of grids for design (and frameworks for CSS as a matter of fact) I was quite sceptical. Why limit yourself to a predefined outline? Mathematical precision in a creative process? Well needless to say I was surprised with the outcome.

Obviously you do tend to repeat certain pieces of code over and over in a project, but a framework? Behind a word like that usually stands a complex set of predefined elements. Though solid and reliable, these are often not very flexible and not easily modifiable. And the last two features seem to be crucial for projects that involve html and css. (more…)

Categories:

17Feb
2009

Zend Framework Decorators - Labels and Checkboxes

Very often it is the smallest things that annoy us the most. It took me a while to figure out why the placement parameter was not changing anything. I started of with the following:

'decorators' => array(
	array('Label'),
	array('ViewHelper')
)

(more…)

Categories: