View Single Post
  #6 (permalink)  
Old February 17th, 2012, 11:24 AM
Imar's Avatar
Imar Imar is offline
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts

XHTML is basically a reformulation of HTML 4 in XML. In other words, the tags and so on are still the same, but XHTML forces the document to be valid XML.

By using an XHTML document type, you force a standards mode in the browser's rendering. Without it, the browser my default to another / older rendering engine which could cause problems. Using XHTML transitional (or the new HTML 5) is likely to create pages that look and behave the same in most modern browsers.

The code is what I have already posted.
I know, but since the images are fake, I can't test this out and see how it looks. Also, there may be other stuff in your page that you haven't shown us that causes problems. In my test page, the white spaces disappears if I add cellspacing and cellpadding as shown earlier.

E.g. <table border="0"> is from which Html/CSS version ?
Tables have been around for ages and are included in all major HTML versions.


Imar Spaanjaars
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
Reply With Quote