Re: Web Layout

Tech-Archive recommends: Fix windows errors by optimizing your registry



Michael,

With all due respect, this is not good advice. There is absolutely no advantage to using XHTML over HTML, and it will certainly not help in this instance.

Furthermore, the days of serving different pages to different browser is long, long gone. You need to serve valid and compliant (X)HTML and CSS to the browser, and in 99% of cases, you will not have problems.

The issue here is not that Opera or Firefox get it wrong, rather that IE has very poor support for web standards. It is certain that Opera and FF are correctly rendering the code, and that IE is doing its best to make sense out of invalid code. This is not according to W3C specifications.

My advice to the OP is to concentrate on ensuring that the output is clean, valid and compliant (X)HTML and CSS first. Once that is achieved, if there are still problems, then look into other things. Jumping into XHTML in the expectation that it will solve the problems is plain wrong. Serving alternate versions of page is a recipe for disaster!

I would also be interested to know why the OP is using a Panel. I have never found a use for them, and dislike the extra HTML they inject into the page. Maybe if we knew what the OP was doing, and saw some code it might help.

In article <3d9fba1a32d08c9bc40c8f25980@xxxxxxxxxxxxxxxxxxxx>, Michael Nemtsev <?@?.?.com.invalid> writes
Hello Gunawan,

The browsing compatibility it the biggest world problem for all web-developers, because the DOM is slightly different over the browsers. It's very hard to provide the unique respesentation. What I can recomend it to use the XHTML validation, so your html conform to the existed formats, and if you really need the exactly same UI layout in all browsers then provide the different pages for the each browser tuned to its specific

---
WBR, Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour
"The greatest danger for most of us is not that our aim is too high and we miss it, but that it is too low and we reach it" (c) Michelangelo

G> Dear All,
G> I am new to web programming using ASP.NET 2.0.
G> I have tried to build a website which I design using TABLE TAG and
G> also
G> PANEL (ASP:PANEL)
G> The problem is, when I display or access web using IE, everything
G> looks
G> fine, but when I use Opera
G> or Firefox, the panel does not on the right place and the web become
G> ugly.
G> Is there any tips so the layout on the IE, Opera or Firefox will look
G> similar?
G> Thank you.
G> Regards,
G> Gunawan



--
Alan Silver
(anything added below this line is nothing to do with me)
.



Relevant Pages

  • Re: The XHTML Factor
    ... Well, XHTML 1.0 has nothing more to offer than HTML 4.01 has, it has ... And indeed the browser with the most market share, MS Internet Explorer, ... deliberate nesting error, and the other iframe containing exactly the ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Form spam? What to do?
    ... >> now serving many new pages in true xhtml 1.1 using the correct mime ... > Your script will serve application/xhtml+xml to a browser with an Accept ... On contrast IE6 accepts the html 4.01 strict code as you can ...
    (alt.html)
  • Re: hidden input type and the dom
    ... scripting, XHTML documents). ... it just applies an inbuilt XSLT to the XML of the mark-up and displays the result as an HTML document that relates to the XML source code. ... You mean that when you tell the browser that the document is HTML it parses it with its tag-soup HTML parser and error-corrects all the nonsense in the mark-up back to an HTML document that it can cope with? ... You are forgetting that our subject here is browser scripting so we have an absolute test for whether a document is XHTML or HTML and that is whether the receiving browser exposes an XHTML DOM or an HTML DOM to be scripted. ...
    (comp.lang.javascript)
  • Re: XHTML Problems
    ... to know whether it's HTML, XHTML, a flat file or dynamically generated, ... ..html suffixed link. ... There's one link, and the server provides what's needed, behind the scenes. ... their browser and my server can ...
    (comp.infosystems.www.authoring.html)
  • Re: HTML::Table Zeilenumbruch
    ... da die Urls ohne Umbruch dargestellt werden. ... HTML bricht sowieso nicht um, sondern wenn dann der Browser. ... Man vergleiche z.B. http://www.hjp.at/tests/silbentrennung.html in Opera ...
    (de.comp.lang.perl.cgi)