Tag Archive: html


XHTML gives way for HTML 5

When XHTML finally begins to unify the browsers and internet experience, the WC3 decides to kill it. The official annoucement as qouted here:

XHTML 2 Working Group Expected to Stop Work End of 2009, W3C to Increase Resources on HTML 5
2009-07-02: Today the Director announces that when the XHTML 2 Working Group charter expires as scheduled at the end of 2009, the charter will not be renewed. By doing so, and by increasing resources in the HTML Working Group, W3C hopes to accelerate the progress of HTML 5 and clarify W3C’s position regarding the future of HTML.

Early adopters are already eargerly testing the new capabilities on Opera browsers. When IE8 decided to implement parts of HTML5, I didn’t actually put much thoguht to it except for the fact that it will take a couple more years before it becomes widespread like XHTML is now (actually, different browser still behave slightly differently under XHTML). But back tracking abit, Google is already very excited about their “Unbelievable product”, Google Wave, being an HTML5 app.

Now, all these early hype is getting me more and more excited about the new offerings, pakaged as HTML 5 APIs that are coming our way. We have some cool Drag and Drop, Geolocation stuff which could bring about even more inventive applications, and finally <video> and <audio> tags that I always wanted.

centering divs with css

c FireFox will glady center the div with just

div {
 width: auto;
}

but IE7 will keep the div aligned at its default. Hence we need a little trick here to make it the way we want it. What we do is we create a div wrapper using another div, and have the css code like this

div.wrapper {
 text-align: center;
}
div.wrapper div {
 text-align: left;
 width: auto;
}

The text align left is optional and is used to explicitly redefine the text alignment for the inner div so that it is independant of the wrapper div’s text align attribute value.

Powered by WordPress | Theme: Motion by 85ideas.