Wednesday, March 26, 2008

Part 1 out of 2(Part 2)
The CSS property “outline: Xpx;” is often overlooked. The only times you see it is when you’ve just clicked a link, as a thin dotted border. (See screenshot above!) It is enabled by the pseudo class :active by default for all anchors (<a>) in your HMTL document. It’s a usability thing, a confirmation that you’ve clicked a link. It also helps the page seem less flat, since a style change when you’ve just clicked a link gives you the feeling of pressing a button.
This blog post is two fold: First, I want to show you how to disable the border. On most modern web pages it is not needed, since we use hover effects, and in many cases graphical buttons to navigate.
Disabling the outline is really easy. You just need to make sure no anchors in your CSS document have that rule any more. All you do is add this to your stylesheet:
a {
outline: 0;
}
NOTE: No version of Internet Explorer supports this, even IE7 still displays the outline even if you have the above rule in your stylesheet.
-
Stay tuned for more info about this lost CSS property.
Saturday, March 22, 2008
I just got done with it, and it’s just for fun. If you look in this blog’s sidebar you’ll see a shiny iPhone with my latest visitors in it.
The reason I did it was just because the new MBL widget looks so much like an iPhone. Especially if you’re using a black and white color scheme for it, which I did. Anyway, I hope you like it!
Wednesday, March 19, 2008
Tuesday, March 18, 2008
Some things are just simply awesome. This plugin for Wordpress posts your most recent blog posts to your twitter account (well, the title and a link at least). It was really easy to setup and hopefully works as it should, too. If you want more content on Twitter and blog often, this is for you!
Link to the Twitter Updater download/install page
Monday, March 17, 2008
I saw the film Juno featuring Ellen Page and Michael Cera (who’s been in the buzz for a while since he played in the very hyped comedy Superbad). It was one of those pictures that I knew I’d like long before it was released. And I did, Ellen Page really touched my heart. Her acting should’ve won the Oscar, and I’m dead serious. There’s this scene where she cries in a car, and her chin is trembling… Incredibly well done.
Juno is unique and different, but yet a role model. To me what’s important about life is to do what you want to do, whatever it might be and without restrictions. The way she’s true to herself is very admirable to me. Being able to throw yourself, get beat up verbally and psychically and still come out on top is, to me, the coolest thing you can do as a living being. It’s pure strength.
One thing that I thought was very interesting was that Bleeker’s “stink-eye girlfriend” literally only appears in one scene, the same scene that was in the trailer. It’s interesting that she doesn’t get any focus whatsoever in the film, which is genius in my opinion. It’s the emotion she gets Juno in and the mood of Paulie that she represents that’s important. And it is very true that nothing else is of any importance to the film, all her character visualizes is the emotion and state of others. Clever.
I have got to see more of Ellen Page. She’s one of my favorites already, and I think the first one being only 21.
Sunday, March 16, 2008
All browsers have their flaws, that’s for sure. But sometimes you see pure stupidity, and then it might be worth writing something about it.
If a web page doesn’t have a doctype, it usually means that the page is either very old or created by someone that don’t care or doesn’t know anything about doctypes. The strange thing though is that Internet Explorer treats those pages as something completely different than normal, modern web pages. If you don’t add a doctype to your HTML document, Internet Explorer will not rely on it’s rendering rules any more. For example: If you set both a width and a padding to an element, normal browser rendering makes the total width of the object to be width+left padding+right padding.
.box {
padding: 10px;
width: 200px;
}
The total width of .box becomes 220px. However, without a Doctype to rely on, Internet Explorer does not default to a simple Doctype like HTML 4.01 Transitional which would follow this rule. Instead it decides that the page is not worth a second chance, and some rules are rendered incorrectly. In this example, .box would actually become 200 pixels wide according to IE’s rendering.
You might think that this is not a big deal, but consider that other browsers are smarter than this, which makes the crossbrowser rendering of the web page a mess. It is also a fairly unknown and “not so easy to discover” kind of bug which makes it even harder.
Read about the existing Doctypes and why you should use them over at A List Apart: Doctypes.
Friday, March 14, 2008

UPDATE 2008-03-20: This bug is easily resolved by upgrading to the latest Beta version of Firebug (currently 1.1). Thanks to PatternHead!
I’ve experienced this bug for quite a while now, and it is really annoying. Basically you can’t inspect an anchor in Firebug, and there’s no way around it.
Today I had enough and decided to do a thorough search on the web to get rid of the problem.. Looks like it’s a well known bug. Someone suggested that I’d revert back to Firefox 2.0.0.11, as it didn’t have this bug. I found an old version, sadly a .exe though. I could not find any mac equivalent, until I stumbled across a Ukrainian .dmg file… So now my Firefox is in crazy Ukranian, but at least it works properly!
Friday, March 14, 2008
For those that haven’t heard, the swedish TechStar is now back in Boulder for 3 months. I’m working hard at our new (not very shiny but OK offices) on 1980 8th St, feel free to drop by.
It’s good to be back.