Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HTML disapears in IE??!!! 1

Status
Not open for further replies.

AGus01

Technical User
Sep 6, 2005
54
GB
Just recently have experienced problems with HTML text failing to be rendered correctly by IE.

For example this page:
on our website the text does not appear till you drag your mouse over or scroll down the page.

Can anyone spot what in the HTML/CSS must be causing this?
Or any ideas what it might be? all help appreciated?

thanks

Gus
 
Random errors like this is the reason we love IE so much :) .

I dunno why it's happening, but here's some things to try...

1) Remove the xml prolog from the start of your page:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "[URL unfurl="true"]http://www.w3.org/TR/html4/loose.dtd">[/URL][b]<?xml version="1.0" encoding="UTF-8"?>[/b]
<!-- topcat cid=519 -->
<html>
...
You're declaring the document to be HTML, rather than XHTML, so an XML prolog is inappropriate (it's optional even in XML documents). It can throw IE into "quirks mode", and the professed UTF8 encoding seems to cause the validator some problems.

Run your page through the validator, it finds 22 errors.

IE may be choking on the fact that you have <div> elements nested inside a <span> element. <span>s are inline elements, they can't include block elements.

Failing all that, try adding [tt]position:relative[/tt] to some of the <div>s in question - it can sometimes make IE behave itself.

-- Chris Hunt
Webmaster & Tragedian
Extra Connections Ltd
 
thanks Chris your a God Sent.

I implemented all the changes you suggested with no luck with the disappering HTML text till i got to the position:relative. Suggestion which apperes to have fixed the bug. [afro2]

I tried looking up articles on the subject but i could not find any thing which could help simple me.

Thanks

Gus.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top