Dienstag, 21. September 2004

(Titel googlen!)

Contentbereich mittig auf Seite positionieren

Mit CSS kann ein Content-Bereich mit fester Breite in einem Fenster zentriert werden, indem man einen #container mit margin: 0 auto; und width: xxxpx; definitert. Dadurch ist der Abstand nach oben und unten Null und nach links und rechts gleich, wenn der body vorher mit text-align: center formatiert worden ist. Innerhalb des Containers sollte dann aber text-align: left sein, damit nicht alles mittig ist. 4:36:01 PM   trackback [] 

Versioning and extensibility in XML formats.

On the Atom-Syntax list they're talking about versioning and extensibility, two problems that are very easily solved in XML.

For versioning, define a required version attribute on the feed element, a string in the form x.y, where x and y are two numbers. X is the major version, and y is the minor version. So a version 0.3 feed would have a version attribute whose value is "0.3". A version 1.0 feed would have a version attribute of "1.0".

For extensibility, allow the format to be extended through namespaces and trust the W3C, who is the owner of the namespaces spec to tell you how to do it. Build on the works of others.

For extra credit, the format should evolve by adding new elements. A processor can tell whether it should expect the new elements or not by checking the top-level version attribute.

I honestly don't think there's another way to do it, so all the arguing and fussing is just going to end up there, so you might as well just do it. Of course this is just my opinion, I have no position re the Atom working group, or the RSS advisory board.

[Scripting News] 3:58:31 PM   trackback [] 

A picture named parkingMeterSmall.gifMost people seem to like yesterday's attempt to define Moblogging, but some don't. The most common complaint is that Moblogging is much less than what I say it is, they say it's just snapping pictures of people on your cell phone and having them automatically uploaded via the MetaWeblog API. It could be there's more to Moblogging than some realize, or it could be that there's no such thing as Moblogging, or it could be they're right, and we need a new term to describe the very real activity I wrote about yesterday. Anyway I hope we can all get along with each other. Maybe we'll just call the session Mobile Blogging, and sidestep the controversy. It's amazing how readily people flame when there's such an obvious compromise available. [Scripting News] 3:57:21 PM   trackback []