RSS - Latest posts Posts Tagged ‘css’

Home » Tags » css
5Sep
2010

Using TextMate for easier CSS3

Over the past couple of years Webkit has popularised many fancy new CSS tricks. Amongst these the ability to rotate an element is certainly one of the most useful. Fortunately it’s also widely supported in other browsers, even in lowly old IE right back to version 5.5. The ‘modern’ browsers support this with a reasonably simple syntax

(more…)

Categories:

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: