Saturday, April 21, 2007

There Is No CENTER

The first thing we need to remember is that a floating element is shifted either to the left or to the right. It is not possible to make an element float in the centre.

While visiting CSS guru sites, I finally learned the reason why there is no "float: center" option in CSS and why the W3 deprecated the HTML center tag.

The reason for this is that it is logically absurd for something to float in the center.

You can easily prove this assertion true: Take a balloon into a room with standard atmospheric pressure on earth. Fill the balloon with helium. Tie off the end of the ballon and release it. The balloon will not float upward to the ceiling. Instead, it will float left or right to the nearest wall.

Okay, I have not tried this experiment myself. I don't have a balloon or helium source at hand.

I feel confident that a balloon would not float upward because the W3 consortium and leading web authorities say so. The only other possibility is that the elitists at the helm of the W3C are one dimensional thinkers with a stick up their collective [the ending of this paragraph was removed by the moderator].

Anyway, I now know that the reason why the W3C deprecated the CENTER tag. They did so because centering an element on a web page is as logically absurd as the notion that a balloon filled with a substance lighter than air would float upward.

1 comment:

Charles D said...

I'm hoping that one of these days they deprecate CSS.