Quote: "@Daivid Thanks What would be the benefits of switching to css? And btw, I like the idea of your CMS."
Thanks
THe main pulling point for me about CSS is the sheer easiness they are to code for. Whereas wiht tables you have to go to great lengths to create, for example, a box with a thin top and bottom border, CSS allows you to define it in a stylesheet and use it anywhere in your document.
#box {
border-top: 1px solid #ccc;
border-bottom: 1px solid #ccc;
width: 300px;
}
then in your HTML:
<div id="box">Hello</div>
This allows you to separate design from content, so instead of describing your page as a large table where cells are randomly placed iwthin the source, you can define your source in an easy-to-read, net fashoin which also degrades gracefully onto platforms such as PocketPC.
Sample page:
<div id="title">
Welcome
</div>
<div id="menu">
<a href="#">Main</a><a href="#">Account settings</a><a href="#">Domain hits</a><a href="#">Referrers</a><a href="#">Browsers / Spiders</a>
</div>
<div id="body">
Body text
</div>
<div id="footer">
<i>Copyright © 2004 David Tattersall, All Rights Reserved</i>
</div>
And with a little bit of clever CSS that page can look this
http://www.davidtattersall.me.uk/stats/new/, complete with rollover menus. Without CSS you'd have to use tables and javascript to get the same effect.
Some examples
http://davidtattersall.me.uk/cat/index.php?shorts/menus/ CSS menus using just <a> tags
http://davidtattersall.me.uk/cat/c/shorts/csscells/example.htm Nice CSS boxes complete with heading spaces. They look like tables but are just a <div> and a <h1> tag.
"They misunderestimated us" - George Bush
"The box said 'Requires Windows 95 or better'. So I installed LINUX. "
Formerly David89.