<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Advanced CSS Design Resources - last-child.com &#187; attribute selector</title>
	<atom:link href="http://www.last-child.com/category/css/attribute-selector/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.last-child.com</link>
	<description>CSS Toys for Professional Web Developers</description>
	<lastBuildDate>Thu, 08 Jul 2010 16:59:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>CSS3 Attribute Selector Presentation</title>
		<link>http://www.last-child.com/css3-attribute-selectors/</link>
		<comments>http://www.last-child.com/css3-attribute-selectors/#comments</comments>
		<pubDate>Thu, 09 Oct 2008 20:46:11 +0000</pubDate>
		<dc:creator>Ted</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[Yahoo!]]></category>
		<category><![CDATA[attribute selector]]></category>
		<category><![CDATA[Cascading Style Sheets]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Presentation]]></category>

		<guid isPermaLink="false">http://www.last-child.com/?p=162</guid>
		<description><![CDATA[During the fog of a summer cold and pressing deadlines&#8230; I gave a presentation today at the Yahoo! Front End Engineering Summit about CSS3 Attribute Selectors. The presentation briefly touched on some of my previous posts on this site as well as a few new concepts and ideas. Here is the full presentation (HTML): CSS3 [...]]]></description>
			<content:encoded><![CDATA[<p>During the fog of a summer cold and pressing deadlines&#8230; I gave a presentation today at the <a href="http://www.flickr.com/photos/tags/f2esummit08/">Yahoo! Front End Engineering Summit</a> about CSS3 Attribute Selectors. The presentation briefly touched on some of my previous posts on this site as well as a few new concepts and ideas.</p>
<p>Here is the full presentation (HTML): <a href="http://www.last-child.com/presentations/attributes/">CSS3 Attribute Lovin&#8217;</a>. Feel free to copy, share, or do whatever you like with it.  </p>
<p>I&#8217;ll post some more information on the new topics soon. Right now I&#8217;ve got to get back to my massive list of outstanding bugs on my project.<br />
<h6 class="zemanta-related-title" style="font-size: 1em;">Related articles by Zemanta</h6>
<ul class="zemanta-article-ul">
<li class="zemanta-article-ul-li"><a href="http://www.list-your-blog.com/yahoo-launches-web-analytics/">Yahoo Launches Web Analytics</a></li>
<li class="zemanta-article-ul-li"><a href="http://blog.searchenginewatch.com/blog/081009-082420">Yahoo Rebrands IndexTools as Web Analytics; Launches Limited Release</a></li>
<li class="zemanta-article-ul-li"><a href="http://ajaxian.com/archives/yahoo-releases-new-performance-best-practices">Yahoo! releases new performance best practices</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.last-child.com/css3-attribute-selectors/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding style to your rel attributes with CSS</title>
		<link>http://www.last-child.com/rel-attribute-display/</link>
		<comments>http://www.last-child.com/rel-attribute-display/#comments</comments>
		<pubDate>Wed, 25 Jun 2008 15:03:00 +0000</pubDate>
		<dc:creator>Ted</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS2]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[Image Sprites]]></category>
		<category><![CDATA[Link]]></category>
		<category><![CDATA[W3C]]></category>
		<category><![CDATA[attribute selector]]></category>
		<category><![CDATA[background]]></category>
		<category><![CDATA[microformats]]></category>
		<category><![CDATA[attribute]]></category>
		<category><![CDATA[Cascading Style Sheets]]></category>
		<category><![CDATA[Data Formats]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[rel]]></category>
		<category><![CDATA[xfn]]></category>

		<guid isPermaLink="false">http://www.last-child.com/?p=153</guid>
		<description><![CDATA[View the finished example: Adding style to your rel link. There&#8217;s a little attribute in HTML links that is starting to get a bit of attention lately. The &#8220;rel&#8221; attribute is a sparsely defined attribute that applies some meta information about a link&#8217;s relationship to other documents. Unfortunately, this information is usually hidden from your [...]]]></description>
			<content:encoded><![CDATA[<p>View the finished example: <a href="/examples/rel-attribute/index.html">Adding style to your rel link</a>.</p>
<p>There&#8217;s a little attribute in HTML links that is starting to get a bit of attention lately. The &#8220;rel&#8221; attribute is a <a href="http://www.w3.org/TR/REC-html40/types.html#type-links">sparsely defined attribute</a> that applies some meta information about a link&#8217;s relationship to other documents. Unfortunately, this information is usually hidden from your users. Let&#8217;s take a light-hearted stab at turning it into a visual element.</p>
<h3>Rel attribute usage</h3>
<p>
While the W3C originally considered the rel attribute to describe the relationship of pages to each other, i.e. next, previous, directory, and start. The attribute has been adopted by the <a href="http://microformats.org">Microformat</a> community for its inherit usefulness. The rel attribute is now used for <a href="http://microformats.org/wiki/rel-tag">tags</a>, <a href="http://gmpg.org/xfn/">to define your relationship to someone</a>, and even to <a href="http://microformats.org/wiki/rel-nofollow">tell search engines not to bother following a link</a>. </p>
<p>
The opportunities to use the rel attribute are seemingly endless. There are more proposals to <a href="http://xen.adactio.com/">define people you don&#8217;t like</a> and <a href="http://microformats.org/wiki/vote-links">links for voting</a>.  </p>
<p>
But all of this flexibility comes at a small price. To remain valid, you need to tell the browser what these new rel values may actually mean. This is handled by <a href="http://microformats.org/wiki/profile-uris">linking to appropriate profiles</a>. Just simply insert the profiles into your head tag. <a href="http://microformats.org/wiki/profile-uris#Combined_Profile">Multiple profiles</a> may throw a validation error, but it&#8217;s ok.  You don&#8217;t need to do this for the standard rel values.</p>
<p><code lang="HTML"><br />
<head profile="http://www.ietf.org/rfc/rfc2731.txt http://www.w3.org/2006/03/hcard"><br />
</code></p>
<p>
We will be using the CSS3 attribute selector functionality to look at the value of the rel attribute and apply some style accordingly. First we&#8217;ll add some padding and a background image to any link that has a rel attribute. We&#8217;ll then use background positioning to display an icon that is appropriate for the link. It&#8217;s a fairly simple hack. </p>
<p>For more information on using attribute selectors, check out my previous posts: </p>
<ul>
<li><a href="/css-attribute-selector/">Progressive enhancement of links using the CSS attribute selector</a></li>
<li><a href="/attribute-selectors-to-provide-language-information/">Attribute selectors to provide language information</a></li>
</ul>
<h3>Sample HTML Code</h3>
<p><code lang="HTML"></p>
<li><a href="http://microformats.org/wiki/rel-nofollow" rel="no-follow">This link is ignored by search engines</a> (rel="no-follow")</li>
<li><a href="http://microformats.org/wiki/rel-tag" rel="tag">A sample tag </a> (rel="tag")</li>
<p></code></p>
<h3>Sample CSS </h3>
<p><code lang="CSS"><br />
a[rel] {padding-left:20px; background:url(rel-sprite.png) no-repeat 0 0; }<br />
a[rel~="help"] {background-position: 0 -350px ;}<br />
a[rel~="license"] {background-position: 0 -1347px ;}<br />
a[rel~="no-follow"] {background-position: 0 -1200px ;}<br />
a[rel~="tag"] {background-position: 0 -47px ;}<br />
</code></p>
<h3>It&#8217;s all fun and games</h3>
<p>
I&#8217;ll be the first to admit this exercise has significant issues. I&#8217;m assuming the following elements are true:</p>
<ol>
<li>All possible rel attribute values are accounted for in my CSS, if not there will be a blank space generated by the first rule</li>
<li>You can only have one relationship defined by XFN. Unfortunately, most people are defined by multiple values, i.e. rel=&#8221;met friend colleague&#8221;. This CSS does not account for multiple values. </li>
</ol>
<p>So, the display of your rel attributes may be a bit off in the edge cases. Keep the spirit light and nobody will say anything&#8230; I hope. Have fun with your rel attributes. They&#8217;re just sitting there waiting to be used. </p>
<p><a href="/examples/rel-attribute/index.html">View the finished rel attribute style example</a>.</p>
<h3>Related Information</h3>
<ul>
<li>Microformats Wiki: <a href="http://microformats.org/wiki/profile-uris#Combined_Profile">Profile URI&#8217;s</a></li>
<li>Microformat: <a href="http://microformats.org/wiki/rel-design-pattern">Rel Design Pattern</a></li>
<li>Microformat: <a href="http://microformats.org/wiki/rel-tag">Tags</a></li>
<li>Microformat: <a href="http://microformats.org/wiki/rel-no-follow">No Follow</a></li>
<li>Microformat: <a href="http://microformats.org/wiki/rel-bookmark">Bookmark</a></li>
<li>Microformat: <a href="http://gmpg.org/xfn/">XFN &#8211; Friends Network</a></li>
<li>Microformat: <a href="http://xen.adactio.com/">XEN &#8211; Enemies Network</a></li>
<li>W3C: <a href="http://www.w3.org/TR/REC-html40/types.html#type-links">Link Types</a></li>
<li><a href="http://www.iconbuffet.com/">Icon Buffet</a> &#8211; The source of most icons used in this example</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.last-child.com/rel-attribute-display/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Progressive enhancement of links using the CSS attribute selector</title>
		<link>http://www.last-child.com/css-attribute-selector/</link>
		<comments>http://www.last-child.com/css-attribute-selector/#comments</comments>
		<pubDate>Wed, 04 Jun 2008 20:13:00 +0000</pubDate>
		<dc:creator>Ted</dc:creator>
				<category><![CDATA[:after]]></category>
		<category><![CDATA[Accessibility]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS2]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[DHTML]]></category>
		<category><![CDATA[Hacks]]></category>
		<category><![CDATA[IE7]]></category>
		<category><![CDATA[IE8]]></category>
		<category><![CDATA[Image Sprites]]></category>
		<category><![CDATA[Link]]></category>
		<category><![CDATA[Online Resource]]></category>
		<category><![CDATA[W3C]]></category>
		<category><![CDATA[attribute selector]]></category>
		<category><![CDATA[min-height]]></category>
		<category><![CDATA[attribute]]></category>
		<category><![CDATA[selector]]></category>

		<guid isPermaLink="false">http://www.last-child.com/?p=152</guid>
		<description><![CDATA[Attribute Selector Test Page We have avoided using CSS3 rules for too long. It&#8217;s been difficult to justify using rules that won&#8217;t work for a significant portion of our audience, Internet Explorer 7 and below. However, Internet Explorer 8 is coming out soon and does work with the features we like. I think it&#8217;s fairly [...]]]></description>
			<content:encoded><![CDATA[<p><a href="/examples/attrib-files/index.html">Attribute Selector Test Page </a></p>
<p>
We have avoided using CSS3 rules for too long. It&#8217;s been difficult to justify using rules that won&#8217;t work for a significant portion of our audience, Internet Explorer 7 and below.  However, Internet Explorer 8 is coming out soon and does work with the features we like. </p>
<p>
 I think it&#8217;s fairly safe to assume IE7 users will upgrade to IE8 within a short time. Those stuck with IE6 for one reason or another will slowly disappear as they are given new computers or their locked down environments are upgraded.</p>
<p>
So, with the future of CSS3 functionality within reach, I&#8217;ve been energized to begin experimenting again.  I&#8217;ll be writing a series of blog posts over the next few months that look at CSS3 functionality as a progressive enhancement. How can we continue to deliver a perfectly fine web site to IE6 and IE7 and mobile phones while enhancing the functionality of more modern browsers and devices?</p>
<h3>Attribute Selectors</h3>
<p>
CSS attribute selectors are the golden ring on the web development merry-go-round. They can be daunting to learn, addictive to use, but then disappointing when you realize they are out of your grasp when you test in Internet Explorer.  We can, however, begin using them to add additional functionality based on your pre-existing, semantic code. Attribute selectors give you power to write CSS that pinpoints the stuff you already code, without having to go back and add classes or ids. I&#8217;ve written previously about <a href="/attribute-selectors-to-provide-language-information/">using attribute selectors to let your users know the language of a site they are about to visit</a>. This trick relies on the rarely used hreflang attribute, which identifies the language of the site targeted in a link.</p>
<p>
There are many other attributes in your HTML, from <a href="http://www.w3.org/TR/html4/struct/tables.html#h-11.4.1">table headers</a>, <a href="http://www.w3.org/TR/REC-html40/struct/objects.html#adef-src-IMG">image src</a>,  <a href="http://www.w3.org/TR/html401/struct/links.html#h-12.1.4">link titles</a>, and <a href="http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.6.1">selected options</a>. Think about all of those juicy attributes just waiting to be targeted. Also think about how you could actually do something useful with them.</p>
<h3>Announce the file type of a link with CSS</h3>
<p>
I once worked for a company that had hundreds of thousands of static HTML pages in their intranet. With no content management system; it was impossible to make global changes. The only thing they shared was a common set of style sheets. Does this sound familiar?  Follow along as we increase your site&#8217;s usability in a less than perfect, but efficient way. </p>
<p>
First off, for accessibility, you need to let users know when a link  will open a file, what type it is, and how large it is. This is best done by adding it to your HTML code:</p>
<p><code lang="HTML"><br />
<a href="foo.pdf" class="pdf">Foo presentation (.pdf, 5kb)</a><br />
</code></p>
<p>That delivers the information to everyone, regardless of their browser.  This, however takes time and is a daunting task for updating legacy code. </p>
<p>
We can, however, use the <a href="http://www.w3.org/TR/2001/CR-css3-selectors-20011113/#attribute-selectors">atttribute selector</a> to target the extension of the link to display the icon and insert the text describing the file type. Here&#8217;s the sample HTML code:</p>
<p><code lang="HTML"></p>
<ul>
<li><a href="foo.zip" >sample zip link</a></li>
<li><a href="foo.pdf" >sample pdf link</a></li>
<li><a href="foo.doc" >sample Word link</a></li>
<li><a href="foo.exe" >sample Executable link</a></li>
<li><a href="foo.png" >sample png image</a></li>
<li><a href="foo.mp3" >sample MP3 file </a></li>
</ul>
<p></code><br />
It&#8217;s a simple list of links for different types of files. We&#8217;ll be looking at the extensions: .zip, .pdf, .doc, .exe, .png, and .mp3. Feel free to extend this list to any extension you so desire. This would be especially helpful for a company that uses proprietary file types within their intranet.</p>
<p>
Now, let&#8217;s look at the CSS:</p>
<p><code lang="CSS"><br />
a[href$="zip"],<br />
a[href$="pdf"],<br />
a[href$="doc"],<br />
a[href$="exe"],<br />
a[href$="png"],<br />
a[href$="mp3"]  {padding-left:20px; background:url(bg-file-icons.png) no-repeat 0 0;}<br />
a[href$="png"]{background-position: 0 -48px;}<br />
a[href$="pdf"] {background-position: 0 -99px;}<br />
a[href$="mp3"]{background-position: 0 -145px;}<br />
a[href$="doc"]{background-position: 0 -199px;}<br />
a[href$="exe"]{background-position: 0 -250px;}</p>
<p>a[href$=".zip"]:after{content: "(.zip file)"; color:#999; margin-left:5px;}<br />
a[href$=".pdf"]:after{content: "(.pdf file)"; color:#999; margin-left:5px;}<br />
a[href$=".doc"]:after{content: "(.doc file)"; color:#999; margin-left:5px;}<br />
a[href$=".exe"]:after{content: "(.exe file)"; color:#999; margin-left:5px;}<br />
a[href$=".mp3"]:after{content: "(.mp3 file)"; color:#999; margin-left:5px;}<br />
a[href$=".png"]:after{content: "(.png file)"; color:#999; margin-left:5px;}<br />
a[href$=".exe"]:after{content: "(.exe file)"; color:#999; margin-left:5px;}<br />
</code></p>
<p><a href="/examples/attrib-files/index.html">See the final test page.</a></p>
<h4>Pattern matching in the attribute selector</h4>
<p>We have some limited &#8220;regular expression&#8221; functionality in CSS3. We can search for an attribute&#8217;s presence and match a pattern within the attribute&#8217;s value.<br />
<a href="http://www.hunlock.com/">Patrick Hunlon</a> has a good summary of the pattern matching: </p>
<blockquote cite="http://www.hunlock.com/blogs/Attach_icons_to_anything_with_CSS">
<ul>
<li>[foo]        &#8212; Has an attribute named &#8220;foo&#8221;</li>
<li>[foo="bar"]  &#8212; Has an attribute named &#8220;foo&#8221; with a value of &#8220;bar&#8221; (&#8220;bar&#8221;)</li>
<li>[foo~="bar"] &#8212; Value has the word &#8220;bar&#8221; in it somewhere (&#8220;blue bar stools&#8221;)</li>
<li>[foo^="bar"] &#8212; Value begins with &#8220;bar&#8221; (&#8220;barstool&#8221;)</li>
<li>[foo$="bar"] &#8212; Value ends with &#8220;bar&#8221; (&#8220;I was at the bar&#8221;)</li>
<li>[foo*="bar"] &#8212; Value has bar somewhere (&#8220;I was looking for barstools&#8221;)  </li>
</ul>
<p><cite><a href="http://www.hunlock.com/blogs/Attach_icons_to_anything_with_CSS">Attach icons to anything with CSS</a></cite>
</p></blockquote>
<p>
The CSS is simply looking to see if the desired extension is at the end of the link href. If so, apply the following styles. </p>
<h4>Adding an icon to the link</h4>
<p>First, we are match any of the desired file extensions.  We then add a background image and some padding on the left side with a bulk rule. Then  the background position on the sprite is adjust for each particular link type. Combining multiple icons into one background image reduces the number of files the user has to download, <a href="http://developer.yahoo.com/performance/rules.html#opt_sprites">making your page faster</a>. This will work with any browser that recognizes attribute selectors, including Internet Explorer 7. However, support for more obscure attributes may be spotty.</p>
<p>
There&#8217;s another peculiarity with pattern matching. Some attributes are case sensitive while others are not. The href attribute is NOT case sensitive, so the above rules will also work if your image name was <em>FOO.ZIP</em>, <em>foo.Zip</em>, or <em>foo.zip</em>.</p>
<h4>Adding the descriptive text</h4>
<p>Now, we are going to add a bit of descriptive text to each link. We can&#8217;t describe the file size, but we can tell the user what type of file it is. This is using the :after(content:) functionality and is supported by Internet Explorer 8 (yeah!!!) but not Internet Explorer 7 and below (boo!!!).<br />
We will also adjust the color and give it a bit of spacing.</p>
<h3>A big step forward with a small chunk of work</h3>
<p>
There you have it. A small chunk of CSS coding has now added substantial usability to your legacy pages. While the CSS version is not as accessible as having the data in the actual link code, it&#8217;s a significant improvement over nothing at all. Further, there&#8217;s no harmful effect on browsers that do not understand the function. You&#8217;ve added information, but haven&#8217;t taken anything away. This is a win in my book. To save some time and effort, you could just download and use this  package of <a href="http://pooliestudios.com/projects/iconize/">CSS and icons</a> from <a href="http://pooliestudios.com">Alexander Kaiser</a>.</p>
<p>
This rather simple example of attribute selectors and pattern matching can open your eyes to many possibilities. There are a number of developers that have been expoloring this potential for the past few years. Take a look at some of these resources for more ideas and have some fun.</p>
<ul>
<li><a href="http://www.w3.org/TR/2001/CR-css3-selectors-20011113/#attribute-selectors">CSS3 &#8211; Atribute Selectors Definition </a> W3C</li>
<li><a href="http://www.456bereastreet.com/archive/200601/css_3_selectors_explained/">CSS 3 Selectors Explained</a></li>
<li><a href="http://www.stuffandnonsense.co.uk/archives/css_a_tribute_to_selectors.html">CSS: A Tribute to Selectors</a></li>
<li><a href="http://developer.yahoo.com/yui/selector/">YUI: Selector Utility</a> Use CSS3 selectors in JavaScript</li>
<li><a href="http://www.cssdrive.com/index.php/forums/viewthread/45/">Dynamic File Type Notations </a></li>
<li><a href="http://www.andybudd.com/archives/2003/09/cool_use_for_css_attribute_selectors/">Cool use for CSS attribute selectors </a> &#8211; Hiding banner ads with CSS</li>
<li><a href="http://www.askthecssguy.com/2006/12/showing_hyperlink_cues_with_cs_1.html">Showing Hyperlink Cues with CSS </a></li>
<li><a href="http://www.askthecssguy.com/2006/12/showing_hyperlink_cues_with_cs_1.html">Showing Hyperlink Cues with CSS </a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.last-child.com/css-attribute-selector/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Internet Explorer 8 beta released for testing</title>
		<link>http://www.last-child.com/internet-explorer-8-beta-released-for-testing/</link>
		<comments>http://www.last-child.com/internet-explorer-8-beta-released-for-testing/#comments</comments>
		<pubDate>Wed, 05 Mar 2008 22:50:10 +0000</pubDate>
		<dc:creator>Ted</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[Hacks]]></category>
		<category><![CDATA[IE8]]></category>
		<category><![CDATA[Online Resource]]></category>
		<category><![CDATA[attribute selector]]></category>

		<guid isPermaLink="false">http://www.last-child.com/internet-explorer-8-beta-released-for-testing/</guid>
		<description><![CDATA[The MIX 2008 conference is this week and Microsoft is showing off some of their latest tools. One of these is the much anticipated and discussed Internet Explorer 8 browser. It&#8217;s important to remember that this is still a beta 1 release and is much better than the IE7 beta 1. This one actually has [...]]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://visitmix.com/2008/default.aspx">MIX 2008 conference</a> is this week and Microsoft is showing off some of their latest tools. One of these is the much anticipated and discussed <a href="http://technorati.com/blogs/tag/Internet+Explorer+8">Internet Explorer 8</a> browser. It&#8217;s important to remember that this is still a beta 1 release and is much better than the IE7 beta 1. This one actually has significant changes.</p>
<h3>Download Internet Explorer 8</h3>
<p>You can download <a href="http://www.microsoft.com/windows/products/winfamily/ie/ie8/getitnow.mspx">Internet Explorer 8, Beta 1</a> from the Microsoft Developer site. However, here are a few things to keep in mind:</p>
<ol>
<li>This installation takes some time, about 15 minutes, and will require a restart of your computer.</li>
<li>It will replace your existing Internet Explorer and is not available as a stand-alone browser.</li>
<li>It renders in standards-mode as a default. You&#8217;ll see a button to render in IE7 mode. This is helpful to see the changes between the versions.</li>
<li>Many sites will have significant layout issues in the standard view. You may need to re-evaluate your conditional comments to specify <strong>IE7</strong> instead of <strong>greater than IE6</strong></li>
<li>IE8 is ignoring the * hack!  This means you can use the underscore hack for IE6, the * hack for IE6 and IE7 and &#8230; um&#8230; I don&#8217;t know yet for IE8. </li>
</ol>
<h3>Is IE8 better than IE7?</h3>
<ul>
<li>Internet Explorer 8 passes the <a href="http://www.webstandards.org/files/acid2/test.html#top">Acid2 Test</a>.  </li>
<li>It understands CSS attribute selectors and generated content.<br />
IE8 handles my <a href="http://www.last-child.com/attribute-selectors-to-provide-language-information/">international test page</a> fine. </li>
<li>It understands :hover on non-links but is still buggy. Here&#8217;s a good <a href="http://thomthom.net/storage/markup/html/sitenav/">test page with multiple CSS3 styles</a>.</li>
<li>It seems to have more integration with social platforms, maps, etc. Perhaps this is a nod towards <a href="http://flock.com">Flock</a>?</li>
</ul>
<p>It&#8217;s still really early to find all of the bugs and benefits of the new browser. The team needs to be commended for the fast development  and their willingness to listen to criticism and change the default behavior at such a late point. I look forward to the more mature releases.</p>
<h3>Updates</h3>
<ul>
<li>Leave it to <a href="http://blog.hedgerwow.com/">Hedger Wang</a> to find and document the first IE8 bug: <a href="http://blog.hedgerwow.com/2008/03/05/see-how-ie8-breaks/">See how IE8 breaks</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.last-child.com/internet-explorer-8-beta-released-for-testing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>2007 Web Development Predictions</title>
		<link>http://www.last-child.com/2007-web-development-predictions/</link>
		<comments>http://www.last-child.com/2007-web-development-predictions/#comments</comments>
		<pubDate>Fri, 01 Dec 2006 18:51:00 +0000</pubDate>
		<dc:creator>Ted</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[DHTML]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[IE7]]></category>
		<category><![CDATA[JSON]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Standardista]]></category>
		<category><![CDATA[Yahoo!]]></category>
		<category><![CDATA[atmedia]]></category>
		<category><![CDATA[attribute selector]]></category>

		<guid isPermaLink="false">http://www.last-child.com/2007-web-development-predictions/</guid>
		<description><![CDATA[The standardistas were abuzz a year ago with hopeful predictions for the coming year. Visions of sugar plums dropping rounded corners, AJAX, and alpha transparent pngs danced through their heads. 2006 has been a great year for web development. Did we get what we wanted? Did we get too much of what we wanted? Further, [...]]]></description>
			<content:encoded><![CDATA[<p>The standardistas were abuzz a year ago with hopeful predictions for the coming year. Visions of sugar plums dropping rounded corners, AJAX, and alpha transparent pngs danced through their heads. 2006 has been a great year for web development. Did we get what we wanted? Did we get too much of what we wanted? Further, what lies ahead?</p>
<h3>Getting drunk on the possibilities and waking up to sober reality</h3>
<p>It could be argued that 2006 was the year of AJAX and DHTML. They matured this year and  solid libraries were released. The <a href="http://developer.yahoo.com/yui/">Yahoo User Interface Library</a> makes a JavaScript mangler like me seem downright competent. Not only that, it&#8217;s got some good accessibility and security built in. <a href="http://juicystudio.com/">Gez Lemon</a> and others have been tearing apart AJAX for a possible accessibility hook that makes all of us happy. <a href="http://www.json.org/">JSON</a> gave us new ways to transfer information.</p>
<p>Yes, we got giddy with the possibilities.  I helped build <a href="http://tech.yahoo.com">Yahoo! Tech</a>. It&#8217;s a great site, if I do say so myself. We launched with every flash, web 2.0, animation, AJAX driven widget imaginable. Someone even called it &#8220;an explosion of a web 2.0 factory.&#8221; The site was  accessible, harnessed the powers of a web-service architecture, and was the first completely new site for Yahoo! Media in a long time. But the web 2.0-ification was the star in many people&#8217;s eyes.</p>
<p>A funny thing happened over the months after launching. We got rid of the flash on the home page. We removed the dynamic width widget. We removed some animations. We began removing these Web 2.0 stars because the users didn&#8217;t use them <strong>AND</strong> they made the site performance horrible. Yahoo Tech, like many other sites, learned an age-old lesson. Just because you can, doesn&#8217;t mean you should.</p>
<h4>Prediction #1 &#8211; In 2007, AJAX and DHTML will be used reasonably. </h4>
<p>I predict new sets of AJAX/DHTML libraries will be released with great features and accessibility. People will go gaga over a few sparkly ideas and ultimately settle with good sites that use the libraries reasonably. I predict AJAX will be used less often as commercial sites realize they need page refreshes for advertising revenue. AJAX will continue to be used for features that significantly help the user&#8217;s experience (<a href="http://finance.yahoo.com">Yahoo Finance Streaming Quotes</a>) and not so much for page level mechanisms (<a href="http://tech.yahoo.com/sp?prod=ipod&#038;search.x=0&#038;search.y=0&#038;search=search">Yahoo! Tech Search</a>). </p>
<h3>No More Rounded Corners</h3>
<p>I hate rounded corners. They were fashionable for a year and everyone had to have them. You could build them with 15 nested divs, with javascript, with extra paragraphs, extra this, that and the other. Die rounded corners die!  </p>
<p>Seriously, rounded corners add a bit of visual white space but they&#8217;ve gone overboard. They&#8217;ve hit the designer&#8217;s toolkit like a bad font and are being used because people feel like that have to use them. It&#8217;s time to be creative again and kill rounded corners. Please! </p>
<h4>Prediction #2: Rounded Corners Replaced With Dancing Hamsters</h4>
<p>Let&#8217;s look at alternate container variations. Put rounded corners on the shelf next to drop shadows and let&#8217;s explore line quality, tonality, texture, and contrast instead.</p>
<h3>Accessibility is a big deal and then it isn&#8217;t</h3>
<p>Accessibility for web sites will become a big deal in 2007 as the <a href="http://www.dralegal.org/cases/private_business/nfb_v_target.php">Target</a> lawsuit comes back and someone figures out a way to make AJAX accessible and easy to implement. I&#8217;m putting my money on <strong>Gez Lemon</strong> finding a solution and  the <strong>Yahoo! User Interface Library</strong> making it available. </p>
<p>Firefox, Apple, Yahoo!, Google, IBM, Sun, and who knows what other companies will come together and agree that there is a particular way that these things should be done and will create some resolutions. After these things happen, you will see more and more sites become accessible without even trying. Platforms such as <a href="http://wordpress.org">WordPress</a> have already made huge impacts in setting up sites to be accessible from the beginning. Look for more advances from Microsoft, Adobe, and more.</p>
<p>Apple will release their new OS with extended assistive technologies built-in. Existing screen reader companies will have to deal with a big new competitor. Watch for Jaws, et al to scurry around fixing outstanding issues to hold onto their audience.</p>
<h4>Prediction #3 &#8211; Accessibility for All</h4>
<p>Even if JaneDoe43 is simply dragging images into her MyLinkedInSpace page, it will have the hooks necessary to be accessible. Platforms and libraries will make it easier for people to worry more about content and less about rules. The web will be a better place for novice and advanced programmers. It will certainly be better for those that need assistive technologies.</p>
<h3>IE7 opens the possibilities</h3>
<p><a href="http://downloads.yahoo.com/internetexplorer/index.php">Internet Explorer 7</a> has been released and will soon see adoption rates increase significantly. <a href="http://www.microsoft.com/windowsvista/default.aspx">Vista</a> is ready to also increase the graphic processing potential for millions of users. As web developers, we have new tools in our kit to work with. Start studying your attribute selectors, pseudo selectors, and playing with alpha transparencies. 2007 will see the death of Internet Explorer 6. It will still sit on a small percentage of machines, but IE7 will take over and with it comes hope.</p>
<h4>Prediction #4: CSS2 and CSS3 Get Used</h4>
<p>Start looking at progressive enhancements with your CSS. Give Firefox, Opera, Safari, and IE7 the best possible experience. You may have to dumb down some of the IE6 images but go for the beauty and simplicity that advanced CSS offers.</p>
<h3>Where&#8217;s the new blood?</h3>
<p>The standardistas of the past are busy working on big projects now. Sure, they&#8217;re still doing some innovative stuff. But where are the young guns inventing wonders like Son of Suckerfish, Microformats, CSS Zen Garden,Image Replacement, SIFR, and god-forbid the image-free rounded corners? Seriously, it&#8217;s time for some exciting developments to come from people recently discovering web standards and bringing a new approach to solving issues. Who knows who will be the next Erik Meyer, Big John, Andy Budd, Shaun Inman, PPK, etc. Who&#8217;s gonna carry Joe Clark&#8217;s  torch for being the genius with a cattle prod as he solves the captioning dilemna next year?</p>
<h4>Prediction #5 &#8211; New Standardistas Rock The House</h4>
<p>Further, these new standardistas are going to come from Asia, India, South America, and possibly the United States and Europe. They&#8217;ll have us on the edge of our seat as <a href="http://www.alistapart.com">AListApart</a> releases the latest tools to completely change the way we build sites. My number one pick for standardista of the future goes to <a href="http://www.hedgerwow.com/">Hedger Wang</a> who tirelessly experiments and publishes little teasers on a regular basis.</p>
<p>I can picture the <a href="http://www.vivabit.com/atmedia2006/">@media 2008</a> conference in Singapore with Molly, Andy, PPK, et al lining up for a chance to rub shoulders with the new greats.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.last-child.com/2007-web-development-predictions/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>The big list of fixed stuff in IE7</title>
		<link>http://www.last-child.com/the-big-list-of-fixed-stuff-in-ie7/</link>
		<comments>http://www.last-child.com/the-big-list-of-fixed-stuff-in-ie7/#comments</comments>
		<pubDate>Wed, 23 Aug 2006 20:15:29 +0000</pubDate>
		<dc:creator>Ted</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS2]]></category>
		<category><![CDATA[HTML Elements]]></category>
		<category><![CDATA[IE7]]></category>
		<category><![CDATA[attribute selector]]></category>
		<category><![CDATA[position]]></category>

		<guid isPermaLink="false">http://www.last-child.com/the-big-list-of-fixed-stuff-in-ie7/</guid>
		<description><![CDATA[The IE7 blog has a new post of items that have been fixed in the upcoming release of IE7. While not on the list, the problem I found with alpha transparent png sprites has been fixed for the final release. Take a look at the list and think of it as new tools to use. [...]]]></description>
			<content:encoded><![CDATA[<p>The IE7 blog has a new post of items that have been fixed in the upcoming release of IE7. While not on the list, the problem I found with <a href="http://www.last-child.com/ie7-background-sprite-bug-the-saga-continues/">alpha transparent png sprites</a> has been fixed for the final release. </p>
<p>
Take a look at the list and think of it as new tools to use. </p>
<blockquote cite="http://blogs.msdn.com/ie/archive/2006/08/22/712830.aspx">
<h4>Bugs we fixed</h4>
<p>
All bugs on positioniseverything.net except the &#8220;escaping floats&#8221; bug (which is planned for the future)</p>
<ul>
<li>Peekaboo Bug</li>
<li>Internet Explorer and Expanding Box Problem</li>
<li>Quirky Percentages</li>
<li>Line-height bug</li>
<li>Border Chaos</li>
<li>Disappearing List-Background bug</li>
<li>Guillotine Bug</li>
<li>Unscrollable Content bug</li>
<li>Duplicate Characters Bug</li>
<li>IE and Italics</li>
<li>Doubled Float-Margin bug</li>
<li>Duplicate Indent bug</li>
<li>Three pixel text jog</li>
<li>Creeping Text bug</li>
<li>Missing First letter bug</li>
<li>Phantom box bug</li>
</ul>
<p>
Details on some of the other bugs (from sources other than the positioniseverything.net list) that we fixed:</p>
<ul>
<li>Overflow now works correctly! (That means boxes do not automatically grow any more.)</li>
<li>Parser bugs: * html, _property and /**/ comment bug</li>
<li>Select control: CSS style-able and not always on top</li>
<li>Auto-sizing of absolute positioned element with width:auto and right &amp; left (great for 3 column layouts)</li>
<li>Addressed many relative positioning issues</li>
<li>Addressed many absolute positioned issues</li>
<li>% calculations for height/width for abs positioned elements http://channel9.msdn.com/ShowPost.aspx?PostID=191182</li>
<li>&lt;?xml> prolog no longer causes quirks mode</li>
<li>HTML element truly independent of the Body (now gets its own width, height etc.)</li>
<li>1 px dotted borders no longer render as dashed</li>
<li>Bottom margin bug on hover does not collapse margins</li>
<li>Several negative margin issues fixed</li>
<li>Recalc issues including relative positioning and/or negative margins are fixed now</li>
<li>CLSID attribute of &lt;object> tag no longer limited to 128 characters</li>
<li>:first-letter whitespace bug described in http://blogs.msdn.com/ie/archive/2005/09/02/460115.aspx fixed</li>
<li>Descendant selector now works properly for grand children when combined with other selectors</li>
<li>First-line and first-letter now applies when there is no space between word :first-line and opening brace {</li>
<li>Pseudo-classes now are working as expected if selector is excluded</li>
<li>The :link selector works now for anchor tag with href set to bookmark</li>
<li>Addressed !important issues</li>
<li>PositionIsEverything piefecta-rigid.htm now works</li>
<li>List-item whitespace bug fixed</li>
<li>Fixed Absolutely Buggy II</li>
<li>Absolute positioned elements now use always correct containing block for positioning and size information</li>
<li>Nested block elements now respect all overflow declarations (hidden, scroll, etc)</li>
<li>Fixed the opposing offset problem (absolute positioned element whit all four top, bottom left and right are present)</li>
<li>&lt;a> tags nested within LI elements will no longer add extra bottom margin when hover occurs</li>
<li>We no longer lose the image aspect ratio on refresh</li>
<li>Cleaned up our ident parsing according to CSS2.1 rules</li>
<li>Fixed parsing bugs for multi- class selectors and class selectors that are combined with id selectors</li>
<li>And many more</li>
</ul>
<p>
We also extended our existing implementations to comply with W3C specifications:</p>
<ul>
<li>Enable :hover on all elements not just on &lt;a></li>
<li>Background-attachment: fixed works on all elements – so Eric Meyer’s complexspiral demo works</li>
<li>Improved &lt;object> fallback</li>
</ul>
<p>Finally, we added new features from CSS2.1:</p>
<ul>
<li>Min/max width/height support (also for images, which did not work in IE7b2)</li>
<li>Transparent borders</li>
<li> Fixed positioning support</li>
<li>Selectors: first-child, adjacent, attribute, child
<ul>
<li>A couple of CSS 3 attribute selectors: prefix, suffix and substring since we were working already in the code base (also the general sibling selector)</li>
</ul>
</li>
<li>Alpha channel PNG support (Not a CSS feature but too important for designers to not call it out J)</li>
</ul>
<p><cite><a href="http://blogs.msdn.com/ie/archive/2006/08/22/712830.aspx">IE Blog</a></cite>
</p></blockquote>
<p>
IE7 is still not as good as Firefox, Opera, or Safari. However, Microsoft is planning an aggressive updating campaign and hopefully it won&#8217;t be long before we can count on our average user&#8217;s browser supporting advanced CSS styles. It&#8217;s time to stop complaining about IE6 and begin planning how you will use these new tools.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.last-child.com/the-big-list-of-fixed-stuff-in-ie7/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Attribute selectors to provide language information</title>
		<link>http://www.last-child.com/attribute-selectors-to-provide-language-information/</link>
		<comments>http://www.last-child.com/attribute-selectors-to-provide-language-information/#comments</comments>
		<pubDate>Sun, 26 Feb 2006 01:33:27 +0000</pubDate>
		<dc:creator>Ted</dc:creator>
				<category><![CDATA[:after]]></category>
		<category><![CDATA[Accessibility]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS2]]></category>
		<category><![CDATA[Image Sprites]]></category>
		<category><![CDATA[Link]]></category>
		<category><![CDATA[W3C]]></category>
		<category><![CDATA[attribute selector]]></category>
		<category><![CDATA[background]]></category>
		<category><![CDATA[padding]]></category>

		<guid isPermaLink="false">http://www.last-child.com/attribute-selectors-to-provide-language-information/</guid>
		<description><![CDATA[Attribute Selectors for International Web Sites Sébastien Guillon, recently wrote a post about using the CSS2 attribute selector and content rule to let visitors know what to expect when clicking on a link to an international web site. Inspired by his approach, I’ve simplified some of the code and added background images to represent the [...]]]></description>
			<content:encoded><![CDATA[<h3>Attribute Selectors for International Web Sites</h3>
<p><a hreflang="fr-fr" href="http://sebastienguillon.com/journal/2005/10/exploiter-les-langues-avec-les-pseudo-classes-css">Sébastien Guillon</a>, recently wrote a post about using the CSS2 attribute selector and content rule<br />
to let visitors know what to expect when clicking on a link to an international web site. Inspired by his approach, I’ve simplified some of the code and added background images to<br />
represent the countries.</p>
<p>Guillon’s original project focused on adding a text description after the link in the site’s native language. To do this, he used a set of descending selectors to look at the page’s language declaration and the link’s hreflang attribute.  I am assuming the site that hosts this <acronym title="Cascading Style Sheets">CSS</acronym> is in english. However, it would not be difficult for you to simply change the generated content if your site is written in French, Spanish,<br />
Swahili, etc.</p>
<h3>Sample list of international Yahoo sites</h3>
<h4>Europe</h4>
<ul>
<li><a hreflang="ca" href="http://ct.yahoo.com/">Catalan</a></li>
<li><a hreflang="da-dk" href="http://dk.yahoo.com/">Denmark</a></li>
<li><a hreflang="fr-fr" href="http://fr.yahoo.com/">France</a></li>
<li><a hreflang="de-de" href="http://de.yahoo.com/">Germany</a></li>
<li><a hreflang="el-gr" href="http://gr.yahoo.com/">Greece</a></li>
<li><a hreflang="it-it" href="ithttp://it.yahoo.com/">Italy</a></li>
<li><a hreflang="no-no" href="http://no.yahoo.com/">Norway</a></li>
<li><a hreflang="sp-sp" href="http://es.yahoo.com/">Spain</a></li>
<li><a hreflang="sv-se" href="http://se.yahoo.com/">Sweden</a></li>
<li><a hreflang="en-gb" href="http://uk.yahoo.com/">UK </a></li>
<li><a hreflang="en-ie" href="http://uk.yahoo.com/"> Ireland</a></li>
</ul>
<p>Now look at the <a href="/international.html">final version with new <acronym title="Cascading Style Sheets">CSS</acronym></a>. Internet Explorer users will not see a difference, try <a href="http://www.mozilla.org">Firefox</a> or <a href="http://www.opera.com">Opera</a>. <ins>Internet Explorer 7 beta 2 shows the flags but does not show the generated content.</ins></p>
<h3>The hreflang Attribute</h3>
<p>The hreflang allows the user/browser to define the language of a link’s targeted page to avoid presenting<br />
unreadable information:</p>
<blockquote cite="http://www.w3.org/TR/html401/struct/links.html#adef-hreflang"><p>The hreflang attribute provides user agents with information about the language of a resource at the end of a link, just as the lang attribute provides information about the language of an element’s content or attribute values.</p>
<p><cite><acronym title="World Wide Web Consortium">W3C</acronym>.org</cite></p></blockquote>
<p>The hreflang attribute defines the language of the web site you are sending someone to. The language is defined with a two letter abbreviation, such as en, fr, sp… You can also define the locality of this language by adding the country code to this language.  This is particularly helpful for languages that have dialects. A Mexican site would have this attribute: hreflang=”sp-mx”.</p>
<h3>The Attribute Selector</h3>
<p>CSS2 allows us to look for tags that contain specific attributes.  We can look for blockquotes with cite attributes, tables with summaries, table cells with header attributes,<br />
and our little friend, the link with an hreflang attribute.</p>
<p><code lang="CSS"><br />
/*English */<br />
a[hreflang="en"]:after, a[hreflang|="en"]:after {content:"\A0(In English)";}<br />
</code></p>
<h3>Breaking it down</h3>
<p>This rule uses a combination of attribute selector and pseudo-class to transform the link from common to fabulous.</p>
<dl>
<dt> a[…]</dt>
<dd>Look for a link with an attribute</dd>
<dt>hreflang=”en”</dt>
<dd>The hreflang attribute must include the letters “en”. This allows the <acronym title="Cascading Style Sheets">CSS</acronym> to work on links that do not define a country variation</dd>
<dt>:after</dt>
<dd>This pseudoselector defines the space after the link</dd>
<dt>{content:”\A0(In English)”;}</dt>
<dd>After the link, place the following text: (In English)</dd>
<dt>hreflang|=”en”</dt>
<dd>The hreflang attribute must include the letters “en” within a hyphenated set, i.e. en-us, en-ca, …</dd>
</dl>
<h3>Adding the flag</h3>
<p>Now that we’ve notified the user about what language the link will be in, let’s tell them the country the site is from. Once again, we will look at the hreflang attribute for this information. This rule is not as neat and tidy. For each country, we are going to look for all of the possible language attributes. For instance, Canadian links could have hreflang=”fr-ca” and hreflang=”en-ca”.</p>
<p><code lang="CSS"><br />
/*Canada */<br />
a[hreflang="en-ca"], a[hreflang="fr-ca"] {background:<acronym title="Uniform Resource Locator">URL</acronym>(flag-sprite.png) no-repeat 0 0; padding-left:35px;}<br />
</code></p>
<p>This time, we will give links that have Canadian country codes 35px padding to the left side and a background image of the Canadian flag that sits to the<br />
left edge of the link’s text.  This style sheet is using an image sprite to keep the server requests to a minimum.  See the Alistapart.com article about using<br />
<a href="http://www.alistapart.com/articles/sprites">image sprites</a> for more information on this technique.</p>
<h3 lang="fr">Et Voilà</h3>
<p>There we have it. A set of international links with the country of origin and language clearly defined.  All of this has been made possible by our friends, the<br />
attribute selector, the pseudo-class, and the content style. Tune in next week as we learn how to make a cruise ship out of two<br />
shoe-boxes and an <acronym title="eXtensible Markup Language">XML</acronym> schema.</p>
<h3>Fine Print</h3>
<p>This has not been tested in Safari, but it shouldn’t be a problem. The pretty and useful presentation elements will not appear in <acronym title="Internet Explorer">IE</acronym>6, NN4, and probably<br />
most alternative devices (My Treo shows the flags but not the added content). I do not know how assistive devices would render these styles, more than likely they would be ignored. This project falls under<br />
the “build for the best, don’t hurt the rest™” protocol.</p>
<h3>Resources</h3>
<ul>
<li><a href="http://www.w3.org/TR/REC-CSS2/selector.html"><acronym title="World Wide Web Consortium">W3C</acronym> Selectors</a></li>
<li><a hreflang="fr-fr" href="http://sebastienguillon.com/journal/2005/10/exploiter-les-langues-avec-les-pseudo-classes-css">Exploiter les langues avec les pseudo-classes <acronym title="Cascading Style Sheets">CSS</acronym></a></li>
<li><a href="http://www.stuffandnonsense.co.uk/archives/css_a_tribute_to_selectors.html">A tribute to selectors</a> &#8211; Andy Clarke</li>
<li><a href="http://www.meyerweb.com/eric/articles/webrev/200008b.html">Attribute Selectors Part II</a> &#8211; Eric Meyers</li>
<li><a href="http://rollyo.com/search.html?q=hreflang&#038;sid=4886&#038;start=16">hreflang resources</a> &#8211; Standardistas</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.last-child.com/attribute-selectors-to-provide-language-information/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>IE7 Beta 2 is out for developers to test</title>
		<link>http://www.last-child.com/ie7-beta-2-is-out-for-developers-to-test/</link>
		<comments>http://www.last-child.com/ie7-beta-2-is-out-for-developers-to-test/#comments</comments>
		<pubDate>Sun, 26 Feb 2006 00:55:35 +0000</pubDate>
		<dc:creator>Ted</dc:creator>
				<category><![CDATA[:hover]]></category>
		<category><![CDATA[Browsers]]></category>
		<category><![CDATA[Conditional Comment]]></category>
		<category><![CDATA[Hacks]]></category>
		<category><![CDATA[IE7]]></category>
		<category><![CDATA[Online Resource]]></category>
		<category><![CDATA[Standardista]]></category>
		<category><![CDATA[attribute selector]]></category>
		<category><![CDATA[first-child]]></category>

		<guid isPermaLink="false">http://www.last-child.com/ie7-beta-2-is-out-for-developers-to-test/</guid>
		<description><![CDATA[IE7 Beta 2 is now available for developers to begin testing. I’ve been suggesting on the web standards group mailing list that people need to begin looking beyond 2005 and start coding for IE7 and 2006. That doesn’t mean you design for IE7 and hack for Firefox. No, it means you can begin using more [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.microsoft.com/windows/IE/ie7/devwebchecklist.mspx">IE7 Beta 2</a> is now available for developers to begin testing.  I’ve been suggesting on the web standards group mailing list that people need to begin looking beyond 2005 and start coding for IE7 and 2006.  That doesn’t mean you design for IE7 and hack for Firefox. No, it means you can begin using more sophisticated <acronym title="Cascading Style Sheets">CSS</acronym> rules. Here’s a very brief summary of what I’ve seen with IE7 Beta 2 so far.</p>
<h3>Rolling out IE7</h3>
<p>Microsoft has an aggressive agenda to upgrade people from IE6 to IE7. By the end of Fall, we should see a significant percentage of our web site visitors using IE7 and by the end of the year, the majority of our traffic will be IE7.  Those without IE7 are machines with illegal copies of XP, people with XP Service Pack 1, and those that don’t accept Microsoft service updates.</p>
<h3>Use real <acronym title="Cascading Style Sheets">CSS</acronym></h3>
<p>If you are working on a site now, begin using real <acronym title="Cascading Style Sheets">CSS</acronym>.</p>
<ul>
<li>Use child selectors, first-child, <a href="http://www.tdrake.net/attribute-selectors-to-provide-language-information/">attribute selectors</a>, etc.</li>
<li>Hover your list items and more. IE7 supports the hover pseudoclass on more than the link.</li>
<li>IE7 offers full support of alpha transparent <acronym title="Portable Network Graphics">PNG</acronym> graphics, so begin using them as well.</li>
</ul>
<p>Forget what you knew about “* <acronym title="HyperText Markup Language">HTML</acronym>”, those hacks now belong in a style sheet that is introduced via a <a href="http://www.quirksmode.org/css/condcom.html">conditional comment</a>. <!-- The only hack you will need to know for IE7 is the *attribute hack  (*width:100px). All of the others -->They are <a href="http://blogs.msdn.com/ie/archive/2005/09/02/460115.aspx">gone, kaput, zilch</a>. Sure, they’ll still work on IE6, but you’re going to have one heck of a nightmare keeping track.</p>
<h3>Test Sites</h3>
<p>I am a big fan of <a href="http://www.stuffandnonsense.co.uk/">All that malarkey (Andy Clarke)</a>. However, his site is full of special rules for IE6 and its a great testing ground to see what IE7 chokes on and what it does as good as Firefox, Opera, and Safari. If your site is fairly hack free, you probably won’t notice a difference going from Firefox to IE7 Beta 2.  Start hunting around and finding the errors.</p>
<h3>What is still broken on IE7</h3>
<p>There are  two major issues that I have with IE7.</p>
<ol>
<li>No generated content. You can’t use <acronym title="Cascading Style Sheets">CSS</acronym> to add checkmarks to visited links, clearing containers spans, etc.</li>
<li>Double float margin still exists.  This can be fixed by adding display:inline to your floated objects when this problem occurs.</li>
<li>While I haven’t been able to nail down the specifics, there seems to be some bugginess with positioning absolute/relative.</li>
</ol>
<p>I’m sure there will be much better analysis of this launch by <a href="http://www.positioniseverything.net/">PositionIsEverything</a>, <a href="http://www.quirksmode.org/blog/index.html">Quirksmode</a>, and the <a href="http://blogs.msdn.com/ie/">IE7blog</a>. I hope these scribbled notes help you move forward.  IE7 is a good thing. It’s not perfect, but damn it sure is nice to ditch the <a title="a javascript that makes IE6 perform as if it understands the :hover pseudoclass" href="http://www.456bereastreet.com/archive/200405/son_of_suckerfish_dropdowns/">son of suckerfish javascript</a>, class=”firstitem”, haloed transparent gifs, et al.</p>
<p><ins>I forgot to mention, IE7 replaces IE6 on your computer. You need to have an extra computer to continue testing your pages in IE6. If you only have one windows box, I’d suggest keeping IE6 on that and just program for Firefox, et al and placing your IE6 hacks in a conditional comment linked style sheet</ins></p>
<p>&#8211; This was originally published on <a rel="bookmark" href="http://www.tdrake.net">tdrake.net</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.last-child.com/ie7-beta-2-is-out-for-developers-to-test/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
