alttag http://alttag.org Sun, 11 Jan 2009 06:37:51 +0000 http://wordpress.org/?v=2.1 en Closure vs Rewrite http://alttag.org/2009/01/11/closure-vs-rewrite/ http://alttag.org/2009/01/11/closure-vs-rewrite/#comments Sun, 11 Jan 2009 06:36:18 +0000 admin http://alttag.org/2009/01/11/closure-vs-rewrite/ At The Rich Web Experience 2008, Douglas Crockford gave an example of a function which would take an integer and return the word for that number by retrieving the word from an array. He started by having the array created globally and the function would access it. This is bad because the array is global. He then created the array each time the function was called. This is also bad because you are creating the array repeatedly. Finally, he did it with a closure, creating the array in a self executing function on page load and returning an inner function which can access the array. It was similar to this, minus the alert and validation: (more…)

]]>
http://alttag.org/2009/01/11/closure-vs-rewrite/feed/
CSS Based Design is not Div Based Design http://alttag.org/2008/10/31/css-based-design-is-not-div-based-design/ http://alttag.org/2008/10/31/css-based-design-is-not-div-based-design/#comments Sat, 01 Nov 2008 04:57:21 +0000 admin http://alttag.org/2008/10/31/css-based-design-is-not-div-based-design/ The title is a quote from Molly Holzschlag from her CSS for Developers presentation at Rich Web Experience 2008 in Washington DC. She was asking the group who still uses tables for layout and one person said they were in the process of changing everything to divs. Molly, seeming a tiny bit frustrated from hearing this to many times, then made the proclamation that “css based design is not div based design”. I clapped, no one else did. (more…)

]]>
http://alttag.org/2008/10/31/css-based-design-is-not-div-based-design/feed/
What happened to the menu tag? http://alttag.org/2007/11/29/whats-happened-to-the-menu-tag/ http://alttag.org/2007/11/29/whats-happened-to-the-menu-tag/#comments Thu, 29 Nov 2007 08:24:29 +0000 admin http://alttag.org/2007/11/29/whats-happened-to-the-menu-tag/ We all try to write our markup to be as semantic as possible. We use proper heading tags, paragraph tags, strong instead of b, em instead of i, and tables only for tabular data. Yet when it comes to our sites “navigation”, we use an unordered list. (more…)

]]>
http://alttag.org/2007/11/29/whats-happened-to-the-menu-tag/feed/
An issue and a fix http://alttag.org/2007/10/20/an-issue-and-a-fix/ http://alttag.org/2007/10/20/an-issue-and-a-fix/#comments Sat, 20 Oct 2007 15:14:33 +0000 admin http://alttag.org/2007/10/20/an-issue-and-a-fix/ Firefox 2.0.0.8 breaks some of the layouts. It breaks on the 3 column versions that use negative margins that are the same size or bigger that the element it is on. It looks like there have been at least 3 bugs raised in the Mozilla bug tracker for this issue and it is being actively worked on. The main one is here: https://bugzilla.mozilla.org/show_bug.cgi?id=400406

One solution would be to inject dynamic content after the container using the :after pseudo-element

container:after{
    content: ".";
    height: 0;
    clear: both;
    visibility: hidden;
    display: block;
}

This seems to fix the issue but is not as clean. I have only done some quick tests with this and have not looked at it in Safari.

Update: I knew there was a name for this! It is called the clearfix method.

]]>
http://alttag.org/2007/10/20/an-issue-and-a-fix/feed/
Liquid Spaced Out Columns http://alttag.org/2007/02/15/liquid-spaced-out-columns/ http://alttag.org/2007/02/15/liquid-spaced-out-columns/#comments Fri, 16 Feb 2007 03:44:55 +0000 admin http://alttag.org/2007/02/15/liquid-spaced-out-columns/ In the previous Space Out Columns post I promised to follow up with some info on liquid layouts, so here we go: (more…)

]]>
http://alttag.org/2007/02/15/liquid-spaced-out-columns/feed/
Spaced Out Columns http://alttag.org/2007/02/08/spaced-out-columns/ http://alttag.org/2007/02/08/spaced-out-columns/#comments Fri, 09 Feb 2007 04:01:38 +0000 admin http://alttag.org/?p=11 In the comments for my A List Apart article, Fredrik Frodlund mentioned he was “not sure it would work if you use blocks that have white space between them”. There actually was a demonstration of this in the three column example with the nested two column layout. I only quickly commented on it, so I thought I would expand on it here. (more…)

]]>
http://alttag.org/2007/02/08/spaced-out-columns/feed/
The new phone book’s here! The new phone book’s here! http://alttag.org/2007/02/06/the-new-phone-books-here-the-new-phone-books-here/ http://alttag.org/2007/02/06/the-new-phone-books-here-the-new-phone-books-here/#comments Tue, 06 Feb 2007 12:59:46 +0000 admin http://alttag.org/?p=10 Check it out: http://alistapart.com/articles/multicolumnlayouts
This site uses a combination of the techniques presented in the article. I have a red border on the container and a gray border on the body. By overlapping them, I get the effect of having a border around the rail.

]]>
http://alttag.org/2007/02/06/the-new-phone-books-here-the-new-phone-books-here/feed/
Why alt tag http://alttag.org/2007/02/06/why-alt-tag/ http://alttag.org/2007/02/06/why-alt-tag/#comments Tue, 06 Feb 2007 07:03:59 +0000 admin http://alttag.org/wp/?p=9 So many times when people talk about web site accessibility and SEO, one of the main things mentioned is to make sure all of your images have an ‘alt tag’ to provide descriptive text for screen readers and search engines. Even Google says this in their Webmaster Help Center, in the Webmaster Guidelines and the How can I create a Google-friendly site sections. Of course what they mean is alt attribute. What I hope this site can do is clarify some of the confusion with web development, and maybe present some new ideas and techniques. Thoughts and ideas are welcomed.

]]>
http://alttag.org/2007/02/06/why-alt-tag/feed/