473,387 Members | 1,757 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Layout does not detect browser window size (IE)

Hi,

I am attempting to create a site which validates as XHTML 1.1. So far I
have got it fully validated but I am not happy with the way Internet
Explorer displays the site when the window is small. For some reason it
treats the table layout as though it is a fixed width, giving a nasty
horizontal scroll bar - but if you click refresh it behaves correctly,
wrapping content within the window. The site works well with Netscape,
Mozilla and Opera and the problem is sometimes hard to recreate using IE,
but to me this is a big problem. There is no way I want a horizontal
scrollbar appearing on the site unless necessary.

Is there a problem with my coding or is there some work around I could use -
something like a meta-refresh?

Any ideas?

Many thanks, Stella

test area - http://homepage.dtn.ntl.com/elphick/NCPP/
Jul 20 '05 #1
5 5419
On Sat, 6 Sep 2003 18:37:35 +0100, "Stella" <no*****@ntlworld.com>
wrote:
Hi,

I am attempting to create a site which validates as XHTML 1.1. So far I
have got it fully validated but I am not happy with the way Internet
Explorer displays the site when the window is small.
how have you configured Internet Explorer to render XHTML 1.1 ? This
is most likely the problem, it takes lots of registry hacking to
achieve it, and I expect something's gone wrong.

Alternatively you're sending the XHTML with the incorrect mime-type
and then expect IE to render something meaningful from it as tag-soup.
Is there a problem with my coding or is there some work around I could use -
something like a meta-refresh?


Most likely just re-implement in HTML 4.01 strict, and the problem
will go away, you'll also be able to serve it to IE without abusing
the mime-type.

Jim.
--
comp.lang.javascript FAQ - http://jibbering.com/faq/

Jul 20 '05 #2

"Jim Ley" <ji*@jibbering.com> wrote in message
news:3f***************@news.cis.dfn.de...
On Sat, 6 Sep 2003 18:37:35 +0100, "Stella" <no*****@ntlworld.com>
wrote:
Hi,

I am attempting to create a site which validates as XHTML 1.1. So far I
have got it fully validated but I am not happy with the way Internet
Explorer displays the site when the window is small.
how have you configured Internet Explorer to render XHTML 1.1 ? This
is most likely the problem, it takes lots of registry hacking to
achieve it, and I expect something's gone wrong.

Alternatively you're sending the XHTML with the incorrect mime-type
and then expect IE to render something meaningful from it as tag-soup.


Thanks for your reply Jim. Whether this is the cause of my problem is now
irrelevant - you have highlighted some things that I was not aware of:

a) I had the wrong mime type (yes I was using text/html as I had previously
designed the site in xhtml 1.0 and upgraded it to 1.1, not realising the
mime type should change).

b) that IE does *not* support the correct mime type for XHTML 1.1

Most likely just re-implement in HTML 4.01 strict, and the problem
will go away, you'll also be able to serve it to IE without abusing
the mime-type.


You suggest HTML 4.01 strict, but would you think it terrible to plump for
XHTML 1.0 with text/html as a transitional move?

Many thanks for your good advice and information,
Stella
Jul 20 '05 #3
Hey Jim, I've done a bit of reading about the subject and agree with you
that HTML 4.01 Strict is the best choice.

Thanks for the heads up.

A good link to others needing insight
http://diveintomark.org/archives/200...etime_continuu
m

serving xhtml as text/html is evil - http://www.hixie.ch/advocacy/xhtml

Stella
Jul 20 '05 #4
On Sat, 6 Sep 2003 19:27:17 +0100, "Stella" <no*****@ntlworld.com>
wrote:
"Jim Ley" <ji*@jibbering.com> wrote in message
Alternatively you're sending the XHTML with the incorrect mime-type
and then expect IE to render something meaningful from it as tag-soup.
Thanks for your reply Jim. Whether this is the cause of my problem is now
irrelevant - you have highlighted some things that I was not aware of:


It almost certainly wasn't, it sounds like one of the CSS bugs
surrounding float to me, but I didn't know enough for certain.
You suggest HTML 4.01 strict, but would you think it terrible to plump for
XHTML 1.0 with text/html as a transitional move?


My reason for this is that Appendix C is hackish and even it only
claims to give you "most browsers". So as HTML 4.01 offers no less,
and isn't hackish, I recommend that.

Jim.
--
comp.lang.javascript FAQ - http://jibbering.com/faq/

Jul 20 '05 #5

"Jim Ley" <ji*@jibbering.com> wrote in message
news:3f***************@news.zen.co.uk...
On Sat, 6 Sep 2003 19:27:17 +0100, "Stella" <no*****@ntlworld.com>
wrote:
"Jim Ley" <ji*@jibbering.com> wrote in message
Alternatively you're sending the XHTML with the incorrect mime-type
and then expect IE to render something meaningful from it as tag-soup.
Thanks for your reply Jim. Whether this is the cause of my problem is nowirrelevant - you have highlighted some things that I was not aware of:


It almost certainly wasn't, it sounds like one of the CSS bugs
surrounding float to me, but I didn't know enough for certain.


Just to let you know I discovered the problem - I pulled the layout apart
bit by bit, testing as I went. It turned out to be where I had resorted to
stretching an image (using percent to fill a cell). I have changed it to
the more acceptable css background-image: url() and it works a treat.
You suggest HTML 4.01 strict, but would you think it terrible to plump forXHTML 1.0 with text/html as a transitional move?


My reason for this is that Appendix C is hackish and even it only
claims to give you "most browsers". So as HTML 4.01 offers no less,
and isn't hackish, I recommend that.


I have followed your advice, many thanks for your help and insight.

Stella
Jul 20 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: news frontiernet.net | last post by:
I have key entered and tried to run example 4-6 from Dany Goodmans DYNAMIC HTML book, version one that is on pages 94-96. This is part of my effort to learn JavaScript. I checked each byte and...
1
by: Ethan | last post by:
I've been trying to get a layout to work right, but so far haven't been able to do so. Here's the layout: http://64.142.13.246/style_testing_site/style_model3.htm This is the basic idea: ...
82
by: Peter Diedrich | last post by:
The site design is pretty simple: ============================================ | Head | ============================================ | | ...
1
by: fuzzyman | last post by:
I have a very odd problem that has boggled my head. I've been trying to get a 2 column layout working with CSS. The problem seems to occur with the use of the <script> tag in the document. I've...
4
by: Schraalhans Keukenmeester | last post by:
I have no clue why below code (found it somewhere and altered it a wee bit to my needs) will run without problem in both IE and Mozilla FireFox 1.0 but in the latter it takes up close to 100% cpu....
4
by: NWx | last post by:
Hi, I develop an ASP.NET app which should be used from Internet, so I don't have control over what browsers will be used. I don't want to target every possible users, so I don't really mind is...
26
by: mark | last post by:
The idea of this is very simle. The site is 800px wide and sits in the middle of the browser window, on either side of the site I want a different background image aligned against it. If I were...
1
by: mark4asp | last post by:
<!-- // How to detect the rendering mode which the browser is currently in (works for IE6). // Ctrl+Shift+s displays indicates whether the browser is in quirks or standards mode. // Detect...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.