Re: Web Layout
- From: Alan Silver <alan-silver@xxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 3 Sep 2007 14:27:28 +0100
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)
.
- References:
- Web Layout
- From: Gunawan
- Re: Web Layout
- From: Michael Nemtsev , MVP
- Web Layout
- Prev by Date: Re: Can someone help me (a Newbie)?
- Next by Date: Re: How to register style
- Previous by thread: Re: Web Layout
- Next by thread: Re: Changing position of Wizardstep
- Index(es):
Relevant Pages
|