23 March 2010

Homepage is UP AND HOT

I spent quite a lot of effort on building this website. Several technologies are used, including simple AJAX. I am so thankful for what I learned throughout the process of building the whole thing. Here are the things I learned:
  • DO NOT use HTML table to do layout; use div and CSS instead.
  • 'position relative' elements are part of the content flow whereas 'position absolute' ones are independent of other elements on your web pages.
  • Use 'float: left', 'position: relative' and 'position: absolute' to create precise tabular effects.
  • Be careful about 'z-index'; you might hide contents behind normal surface.
  • Browsers cannot understand newlines or tabs inside XML files. Therefore it is better to use JSON or YAML to represent data (more human readable) when doing AJAX.
  • Making a horizontal scrollable image gallery with CSS? check THIS wonderful tutorial
DHTML rocks!

No comments: