Cascading Style Sheets (or CSS for short) have slowly but surely become a website design standard over the past few years. It was not that many years ago that people used Frames to position their content across their web pages and Tables gradually replaced this. Many low-end website developers are still very comfortable with Tables, as it does what it says on the tin. However, more and more people are now moving over to CSS, as virtually all the layout options can be achieved using the code.
One major problem with CSS is that not all Web browsers produce the same results and it has not been helped in the past by the various browsers employing their own way of interpreting certain CSS conventions. You can think your CSS design looks OK in the current version of your preferred browser and can then be crestfallen when you view your Web pages in another version that has destroyed the formatting. Therefore, when moving over to CSS, it is important that you use the capabilities that are consistently supported across the entire range of popular browsers. It is interesting that the new version 7 of Microsoft's Internet Explorer has fixed a number of earlier anomalies, but many people are now waking up to the reality that IE7 has in fact caused problems arising from their earlier workarounds!
So why not bother with CSS, if Tables work for you? The principal advantages are as follows:
1. Web page code is generally much easier to follow;
2. The amount of code used to achieve the same result is much less. The general view is that by switching to a CSS layout, the typical page size reduction is between 50 - 60 per cent;
3. Download speeds for CSS pages are generally faster than their Table-driven counterparts. This is because browsers have to read through the table code twice before they are able to display the contents. They do this firstly to figure out the structure and then again to understand the content. It should also be recognised that a Table's contents can only be presented to the screen in one go, whereas CSS content will drop in separately, thereby giving a better user experience. It is also possible to govern the order in which specific screen elements appear, so the user is not distracted by the more bulky and slower to load image files. Furthermore, because all the code involved with CSS page layout is held in one external CSS document and is cached, it is faster than Table layouts that need to be interpreted every time a new page is displayed;
4. It is much easier to edit existing pages and to add new pages, particularly in the area of subtle formatting amendments. For example, you can change the font or colour scheme across an entire website in literally minutes;
5. CSS delivers enhanced accessibility. In recent years the number of people using web browsers on hand-held devices has risen significantly and CSS plays an important function in delivering content to PDA's etc through additional CSS documents. This just isn't possible with Table-driven layouts;
6. CSS is considered to be more Search Engine friendly because they can spider CSS pages quicker. However, it remains to be seen if this has any tangible benefits such as an improvement on the your page ranking.
On the flipside, there are a few disadvantages to CSS web page design you should consider:
1. As compared with Tables, CSS involves a much bigger learning curve;
2. Because of cross browser support issues, the time spent implementing workarounds should not be underestimated;
3. New browser versions can catch website developers napping if you are not careful. You can find that earlier workarounds have been overcome and the look of your website has changed overnight.
Ultimately, your decision on whether or not to move over to see CSS will probably depend on your level of technical capability and the time you're able to devote to understanding CSS layout alternatives.
David Sielicki is Features Editor with Fetcher the UKs products and services directory. He is also a freelancer with Web Affinity
?cat=16Jun 3, 2008 Jun 4, 2008 Jun 5, 2008 Jun 6, 2008 Jun 7, 2008 Jun 8, 2008 Jun 9, 2008 Jun 10, 2008 Jun 11, 2008 Jun 12, 2008 Jun 13, 2008 Jun 14, 2008 Jun 15, 2008 Jun 16, 2008 Jun 17, 2008 Jun 18, 2008 Jun 19, 2008 Jun 20, 2008 Jun 21, 2008 Jun 22, 2008 Jun 23, 2008 Jun 25, 2008 Jun 26, 2008 Jun 27, 2008 Jun 28, 2008 Jun 29, 2008 Jun 30, 2008 Jul 1, 2008 Jul 2, 2008 Jul 3, 2008 Jul 4, 2008 Jul 6, 2008 Jul 7, 2008 Jul 8, 2008 Jul 9, 2008 Jul 10, 2008 Jul 11, 2008 Jul 12, 2008 Jul 13, 2008 Jul 14, 2008 Jul 15, 2008 Jul 16, 2008 Jul 17, 2008 Jul 18, 2008 Jul 19, 2008 Jul 20, 2008 Jul 21, 2008 Jul 22, 2008 Jul 27, 2008 Jul 28, 2008 Jul 29, 2008 Jul 30, 2008 Jul 31, 2008 Aug 1, 2008 Aug 2, 2008 Aug 3, 2008 Aug 4, 2008 Aug 5, 2008 Aug 6, 2008 Aug 7, 2008 Aug 8, 2008 Aug 9, 2008 Aug 10, 2008 Aug 11, 2008 Aug 12, 2008 Aug 13, 2008 Aug 14, 2008 Aug 19, 2008 Aug 20, 2008 Aug 21, 2008 Aug 22, 2008 Aug 23, 2008 Aug 24, 2008 Aug 25, 2008 Aug 26, 2008 Aug 27, 2008 Aug 28, 2008 Aug 29, 2008 Aug 30, 2008 Aug 31, 2008 Sep 1, 2008 Sep 2, 2008 Sep 3, 2008 Sep 4, 2008 Sep 5, 2008 Sep 6, 2008 Sep 7, 2008 Sep 8, 2008 Sep 10, 2008 Sep 11, 2008 Sep 12, 2008 Sep 13, 2008 Sep 14, 2008 Sep 15, 2008 Sep 16, 2008 Sep 17, 2008 Sep 18, 2008 Sep 19, 2008 Sep 21, 2008 Sep 22, 2008 Sep 23, 2008 Sep 24, 2008 Sep 25, 2008 Sep 26, 2008 Sep 27, 2008 Sep 28, 2008 Sep 29, 2008 Sep 30, 2008 Oct 1, 2008 Oct 2, 2008 Oct 3, 2008 Oct 5, 2008 Oct 6, 2008 Oct 7, 2008 Oct 8, 2008 Oct 9, 2008 Oct 10, 2008 Oct 11, 2008 Oct 12, 2008 Oct 13, 2008 Oct 14, 2008 Oct 15, 2008 Oct 16, 2008 Oct 17, 2008 Oct 18, 2008 Oct 19, 2008 Oct 20, 2008 Oct 21, 2008 Oct 22, 2008 Oct 23, 2008 Oct 24, 2008 Oct 25, 2008 Oct 26, 2008 Oct 27, 2008 Oct 28, 2008 Oct 29, 2008 Oct 30, 2008 Oct 31, 2008 Nov 1, 2008 Nov 2, 2008 Nov 3, 2008 Nov 4, 2008 Nov 5, 2008 Nov 6, 2008 Nov 7, 2008 Nov 8, 2008 Nov 9, 2008 Nov 10, 2008 Nov 11, 2008 Nov 12, 2008 Nov 13, 2008 Nov 14, 2008 Nov 15, 2008 Nov 16, 2008 Nov 17, 2008 Nov 18, 2008 Nov 19, 2008 Nov 20, 2008 Nov 21, 2008 Nov 25, 2008 Nov 26, 2008 Nov 27, 2008 Nov 28, 2008 Nov 29, 2008 Nov 30, 2008 Dec 1, 2008 Dec 14, 2008 Dec 15, 2008 Dec 16, 2008 Dec 17, 2008 Dec 18, 2008 Dec 19, 2008 Dec 20, 2008 Dec 21, 2008 Dec 22, 2008 Dec 23, 2008 Dec 24, 2008 Dec 25, 2008 Dec 26, 2008 Dec 27, 2008 Dec 28, 2008 Dec 29, 2008 Dec 30, 2008 Dec 31, 2008 Jan 1, 2009 Jan 2, 2009 Jan 3, 2009 Jan 4, 2009 Jan 5, 2009 Jan 6, 2009 Jan 7, 2009 Jan 8, 2009 Jan 9, 2009 Jan 11, 2009 Jan 12, 2009 Jan 22, 2009 Jan 23, 2009 Jan 24, 2009 Jan 25, 2009 Jan 26, 2009 Jan 27, 2009 Jan 28, 2009 Jan 29, 2009 Feb 2, 2009 Feb 3, 2009 Feb 4, 2009 Feb 5, 2009 Feb 6, 2009 Feb 8, 2009 Feb 9, 2009 Feb 10, 2009 Feb 11, 2009 Feb 12, 2009 Feb 13, 2009 Feb 14, 2009 Feb 16, 2009 Feb 17, 2009 Feb 18, 2009 Feb 19, 2009 Feb 20, 2009 Feb 21, 2009 Feb 22, 2009 Feb 23, 2009 Feb 24, 2009 Feb 25, 2009 Feb 26, 2009 Feb 27, 2009 Feb 28, 2009 Mar 1, 2009 Mar 2, 2009 Mar 3, 2009 Mar 4, 2009 Mar 5, 2009 Mar 6, 2009 Mar 7, 2009 Mar 8, 2009 Mar 9, 2009 Apr 1, 2009 Apr 2, 2009 Apr 3, 2009 Apr 4, 2009 Apr 5, 2009 Apr 6, 2009 Apr 7, 2009