Web Layout

G

Gunawan

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

Michael Nemtsev, MVP

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
 
G

Gunawan

Due to I am new to this ASP.NET programming.
I am not quite understand about use XHTML validation.
What is that mean? and how it works?
Thank you In Advance.
Regards,
Gun
 
M

Michael Nemtsev, MVP

Hello Gunawan,

Read there http://msdn2.microsoft.com/en-us/library/exc57y7e.aspx

---
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> Due to I am new to this ASP.NET programming.
G> I am not quite understand about use XHTML validation.
G> What is that mean? and how it works?
G> Thank you In Advance.
G> Regards,
G> Gun
G> G>
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
 
A

Alan Silver

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.

Michael said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,817
Latest member
AdalbertoT

Latest Threads

Top