The tools (various small helper libraries) are now under http://svn.castleproject.org:8080/svn/castlecontrib/Tools/
what's in there:
Over two year ago, I have posted about the un-orthodox box model that IE6 is using.
Yesterday I saw that Ohad Aston (an Israeli Web developer who blogs in Hebrew at the Israeli MSDN blogs site) has written a Hebrew explanation to the same phenomena, so if you do web, especially using ASP.NET and can read Hebrew, I recommend that you take a peek. And if you're there, subscribe to his RSS. I did.
Another quote:
Please don't use table even though they work fine,
when it comes to indexing they give searches a hard time
and also
Check in all browsers, I do it directly,
You got to make sure that it renders correctly
This should be in the curriculum for any webmasters 101 course
There's this cool little site that LOL-ify any web page.
This is how my blog would've looked like had I been a kitten. It would also most probably be written in LOLCODE.NET
Now, the interesting part.
I got that through Roy Osherove's blog. That's how his blog looks like when LOL-fied.
Can you see the difference?
When designing my blog's markup, I paid good attention to the fact that the actual content (posts) should come before the side-bar with links, archive, blogroll, ads or whatever.
The more 'legacy' kind of web design (usually with tables, but can also be "achieved" with div/css) is to box everything around the content, and having the ViewContents (or ContentPlaceholder) as the last thing on the Layout (or MasterPage).
So when my blog is being read by a machine (that parses html), the important things is first.
You might say - I don't give a crap about LOL sites, and my site is for humans, not machines.
But what about the blind who 'reads' helped by a machine that reads the page and say it out loud? must they get the whole links part on every page before they get to the content?
What about search index bots? we should help them get to the content.
After reading the challenge on Dror's blog (Hebrew) I decided to post my answer here.
In short, for non hebrew readers, Dror is asking for a markup+css solution for the next layout:
no javascript allowed for layout purposes.
Oh, and the center column can be long, so the left and right columns should stretch with it.
I have added another prequisite: the center content must come before the side contents (for accessibility).
That's my simplistic answer:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional-dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Dror Engel's blog rocks</title>
<style type='text/css'>
div, body {padding:0, margin:0}
#right-column
{
background-color:#FFA
}#left-column
{
float:left;
width: 500px;
background-color:#FAF
}#center-column
{
float:right;
width:400px;
background-color:#AFF
}
div.break
{
clear:left;
}</style>
<script type='text/javascript'>
function stretchCenter() {
var center = document.getElementById('center-column');
center.innerHTML += '<br /> Blah blah blah';
}
</script>
</head>
<body>
<div id='right-column'>
<div id='left-column'>
<div id='center-column'>
<button onclick='stretchCenter();'>Streach Center</button> <br />
Center <br />
Center <br />
Center <br />
</div>
Left
</div>
right <br />
<div class='break'></div>
</div>
</body>
</html>
demo is here.
That's a great news for everyone who build websites and web applications.
IE7 would be installable even to XP users without the Genuine Check.
That means that in short time, the IE7 adoption rate would increase so much, that hopefully the annoying IE6 would become as obsolete as Netscape 4 and IE 5.5 ...
No more dirty CSS hacks (or at least, a lot less)
No more buggy box-model
Finally we can use input[type=text] and the likes
I've kept IE6 on my box for so long only to be able to test what I write. Even though I use Firefox for day-to-day browsing, I still need IE for some crappy israeli sites that would just not work on non IE (and by not work - I mean that you get an alert box saying:
For people who knows not Hebrew:
"This site supports IE browsers, from version 5.5 and up. Support to other browsers is planned for next release"
Ha Ha.
This message is there for at least a year.
And it's not even dependant on ActiveX or other IE magic. It's only some laziness regarding JS and CSS compatibility.
Ok, so I've read Scott McMaster's post where he made some comparison between HTML and Assembly.
My first reaction had been: "Must be another of those HTML frightened guys". I know I have been one in the past.
But then I've read the small debate that evolved around that post, over at Ayende's blog, and I understand Scott's point better (even though I totally disagree, for the reason so beautifully written by Faisel).
Now I'd like to refer to the "Need of abstraction" for all those "I'm scared of HTML" guys.
HTML is easy.
Really.
Ask any 12 year who've read a "Build your webpage" book.
Ask any decent web designer who can hack together flying menus and 3d buttons without knowing the difference between 'for' and 'while'.
Browser compatibility issues? You kid me? w3schools + quircksmode, and thanks to FF+Safari+IE7 it's becoming less of an issue by the day.
Css? that's really a bright idea. Very intuitive and meaningful. The ultimate DSL.
The only 'problem' is Javascript, that wasn't maturing fast enough in terms of a standard library, but thanks to prototype and the likes, and since Steve-Yegge announced that NBL is Javascript 2.0, hopefully the browsers soon would implement some stuff to make Javascript the great language it should be in a standardized way.
Building a html/css combination to comply with a crazy designer's psd is a child's play. Adding an advanced "sort the grid, and do some async web calls" is easier than writing your own Data Access code correctly. I saw a lot more of a bad data access code than bad DHTML code, and since most Data-Access code is private while most DHTML code is wide open in the wild, I must conclude that it must be easier to make a website's UI work than to have connections open-late and close-early.
Remember, I was a web-scared guy for a long time, and Asp.NET 1.0 with it's ViewState and int.TryParse(txtAge.Text, out age) was the entry point to the browser for me. It took a lot for me to understand that I must learn HTTP, HTML and Javascript, and shockingly enough I realized that it's a far simpler model than the so-called "abstraction" of WebForms.
And in the future?
Silverlight/Flex/whatever could have been the future, but it surly ain't the near one. It's a matter of standards. xhtml 1.1, CSS 2, Javascript 1.2, those are standard. The differences between Safari, FF2 and IE7 are minimal nowadays. It would take a lot of time (imho) until most web-sites would run purely on a browser runtime thing. Not to mention that XHTML is cross platform down to almost any device these days. and that the textual nature of XHTML makes it very fast, and supportive of the "Let's index all knowledge over the WWW" thing that some small start-up companies (like Google) are pushing.
That was one of the strangest rants I've ever done.
<html>
<head>
<style type="text/css">
<!--
div
{
width: 100px;
height: 100px;
background-color: aquamarine;
border: 10px black solid;
}
#div1
{
padding: 10px 10px 10px 10px;
}
#div2
{
margin: 10px 10px 10px 10px;
}
#div3
{
border-width: 0px;
}
-->
</style>
</head>
<body>
<div id="div1">div1</div>
<div id="div2">div2</div>
<div id="div3">div3</div>
</body>
</html>

content edge or inner edge
The content edge surrounds the rectangle given by the width and height of the box ...