Tracking Conversion CSS “letter-spacing”
——————————————————————————— 1 =1/1000 em
100 =100/1000 em =0.10 em
200 =200/1000 em =0.20 em ———————————————————————————
I came across this weird bug in Firefox. The scrollbar was missing, but I hadn’t even started any CSS yet. I figured the only special thing I’d done was setting a meta tag to get rid of those cartoon looking buttons in IE6/XP.
<meta http-equiv="MSThemeCompatible" content="no" />
Accidently it also strips Firefox of it’s scrollbar.
Want an anchor element to display as a block element while inline?
<ul> as block with height.<li> with line-height, not height. <a> to display: inline-table;
<a> to display: inline-block;
It breaks because it reads the exact width of the HTML text, which is less than the width required for the Flash text. You can adjust this by specifying letter-spacing, so the HTML text is as wide as the Flash text.
The aha-moment: before(content) and after(content) are to take complete nodes only.
This one is a bitch to track down, so try to remember it. Sometimes in IE6, sometimes in IE7.
font-size: 0px; line-height: 0px; text-indent: -9999px; display: block;
Needs display: block; for text-indent to work in IE 6 and 7. Use float if inline needed. Or [button][span]Hide my text[/span][/button]
In js. Can’t use units for some reason.
Needs two adapters to get from Mini DisplayPort to ADC. Have to be Apple brand. Gonna be pricy. Also see on flickr.
$(‘#myDiv’).height(); gives 0 because the contents of #myDiv are floated, so #myDiv has collapsed and actually do have 0px height.