IE7 DIV tags

G

Guest

i have got an ASP.net 2.0 seb site that generates pages that are full of
<DIV> tags and IE7 does not like it, i basically get a blank page, IE6
displays it fine. this is an important application and we really want to
deploy IE7, so i need a quick fix, any sugestions?

Thanks
 
C

C A Upsdell

Mark said:
i have got an ASP.net 2.0 seb site that generates pages that are full of
<DIV> tags and IE7 does not like it, i basically get a blank page, IE6
displays it fine. this is an important application and we really want to
deploy IE7, so i need a quick fix, any sugestions?

Step 1: run the HTML and CSS validators to see if there are any errors
in the code.
 
G

Guest

where do i find these validators?

C A Upsdell" <""cupsdell"@nospam@upsdel said:
Step 1: run the HTML and CSS validators to see if there are any errors
in the code.
 
G

Guest

these validators for the HTML bring back lots of errors, i have ran the
source aspx page through the validator, and the source of the page that will
not diaplay in IE7 through the validator, both return lots of errors but the
only errors i can find regarding the div tags is that they need to be in
lower case to pass validation. there are too many errors to try and fix
indervidually (nearly 3000)
 
C

C A Upsdell

Mark said:
these validators for the HTML bring back lots of errors, i have ran the
source aspx page through the validator, and the source of the page that will
not diaplay in IE7 through the validator, both return lots of errors but the
only errors i can find regarding the div tags is that they need to be in
lower case to pass validation. there are too many errors to try and fix
indervidually (nearly 3000)

When you have errors in the code, you put yourself at the mercy of how
the browser responds to the errors. Different browsers -- and different
versions of the same browser -- may respond to errors differently. By
accepting 3000 errors, you accept the consequences of the errors.

Your comment that an error message appears saying that the 'div tags ...
need to be in lower case' indicates that the page has an XML or XHTML
DOCTYPE, but the code does not match the DOCTYPE.

Something else you might try is seeing what FireFox and Opera do with
the page. If they and IE7 behave in a similar fashion, this would
suggest that the problem is related to a violation of standards:
FireFox, Opera, and IE7 conform to the standards better than IE6, so bad
code -- or code that assumes IE6's defects -- will have fewer
consequences with IE6. If Firefox and Opera render the page in a
reasonable manner, and IE7 does not, it is likely -- though not certain
-- that the IE7 problem is instead due to an IE7 bug.
 
R

Rob ^_^

Hi Mark,

A known rendering issue with IE6 SP2 and IE7 (both use the same rendering
engine) is the existance of orphaned tags in your html. This may be an
orphaned div tag or even a script tag.

eg
<script language="javascript">
alert('hello world');
<body>
hello world
</body>
etc....

The above will render just fine in IE6 SP1 and Firefox, but you will only
see a blank page in IE6 SP2 and IE7.

You can test if this is occurring with your site if you can view>source of
your blank page and get the source html even though your page is blank!

I have also seen this occur where there are duplicate attributes within a
tag. eg
<form action=dosomething.asp name=frmUpdate action=dosomething.asp>

I don't know of any tools to help you find these features. If your code is
spagetti, methodically add whitespace between the div blocks.

Regards.
 
C

C A Upsdell

Rob said:
Hi Mark,

A known rendering issue with IE6 SP2 and IE7 (both use the same rendering
engine) ...

They do NOT use the same engine. IE7 has some bugs fixed, some
improvement with standards-compliance, and stronger security. Pages can
look different with the two browsers.
 
G

Guest

i have tried viewing the page in firefox and it will display but the content
is all overlayed. The page is generated from a Master page that dumps some
html into an asp:literal control. the result is that there is an embedded
html page within it. could this be a problem.

i also cant see a way of getting my asp.net code to generate the page
correctly as it dumps the source page's html into a file and then pulls it
into the literal control to display it.

this it quite a difficult problem to explain on here.

Thank you
 
G

Guest

this issue has been resolved, it was not DIV tags that were causing the
problem. it was asp.net panel Height tags. took them out and it works just
fine
 

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

Top