School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

Join 300,459 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,632 people online right now. Registration is fast and FREE... Join Now!




Showing in FF, Safarie, Opera and Chrome, but not IE

 

Showing in FF, Safarie, Opera and Chrome, but not IE, the case of the vanishing div (Screen shots included)

Torroes_prime

2 Jul, 2009 - 09:00 AM
Post #1

D.I.C Head
**

Joined: 7 Jun, 2009
Posts: 71


My Contributions
OKay, So I'm making this website and for compatability sake I have Opera, Safari, IE, FireFox and Chrome all loaded. That way I can check my site in all the browsers. So I make the first page with the layout and all the major sections and everything and I go to check it: Firefox, Opera, Chrome and Safari all show up just fine no problems what so ever. I go to check it in Internet Explorer.... An entire DIV is not showing up......!

Here it is in Fire Fox (The Footer div shows up just fine....
IPB Image



And then here it is in Internet Explorer (Um, dude wheres my foot?)
IPB Image

I'm kinda at a lose on this one. I've never encountered a case where an element that is used multiple times in the same page only fails to show up in one browser like this.


What gives?

Here's the link to the webpage:
Outriders Villian Group

and here's the link to CSS:
The CSS File

This post has been edited by Torroes_prime: 2 Jul, 2009 - 09:01 AM

User is offlineProfile CardPM
+Quote Post


RudiVisser

RE: Showing In FF, Safarie, Opera And Chrome, But Not IE

2 Jul, 2009 - 09:12 AM
Post #2

.. does not guess solutions
Group Icon

Joined: 5 Jun, 2009
Posts: 1,872



Thanked: 137 times
Dream Kudos: 125
Expert In: PHP, MySQL, HTML, CSS, C#

My Contributions
Nothing to do with IE, you told it to render in Quirks mode smile.gif

Your document starts like this:
CODE
<html>
<head>


Get yourself a Doctype, not sure which you'd want to use, as it's kindof a mix between XHTML and HTML.
User is offlineProfile CardPM
+Quote Post

Torroes_prime

RE: Showing In FF, Safarie, Opera And Chrome, But Not IE

2 Jul, 2009 - 10:03 AM
Post #3

D.I.C Head
**

Joined: 7 Jun, 2009
Posts: 71


My Contributions
QUOTE(MageUK @ 2 Jul, 2009 - 09:12 AM) *

Nothing to do with IE, you told it to render in Quirks mode smile.gif

Your document starts like this:
CODE
<html>
<head>


Get yourself a Doctype, not sure which you'd want to use, as it's kindof a mix between XHTML and HTML.



I'm gonna assume everything you just said and I didn't understand has to do with the fact that I didn't get to take the Web Design 1 like I had planned this summer (stupid school canceling the class 24 hours before it was supposed to start)

My (admittidly limited) knowledge comes from 5 tutorials I flipped through in Introduction to Computer Concepts last semester. The Tutorials went from basic xhtml up to Tables in xhtml. They never mentioned anything about Doctype or "quirks' mode. Care to explain or point me in a direction that I can read about them?
User is offlineProfile CardPM
+Quote Post

RudiVisser

RE: Showing In FF, Safarie, Opera And Chrome, But Not IE

2 Jul, 2009 - 10:11 AM
Post #4

.. does not guess solutions
Group Icon

Joined: 5 Jun, 2009
Posts: 1,872



Thanked: 137 times
Dream Kudos: 125
Expert In: PHP, MySQL, HTML, CSS, C#

My Contributions
Well, any XHTML Tutorial should have told you that every HTML Document requires a Doctype.

Stick this at the top of your page:
CODE
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


Quirks mode is, let's say, a backwards compatible rendering engine. It enables "Quirks" in certain browsers, to replicate the "quirks" of older browsers (namely IE4,5,6).

You don't need to read up much on it, since you won't be using it smile.gif

Also XHTML Tutorials should have told you that all of the tags are lowercase, so <script LANGUAGE is invalid, so is the language attribute of your script tag... The start of your document correctly formed would look like this:
CODE
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<title>Welcome to the Outriders!</title>
<link href="outriders.css" rel="stylesheet" type="text/css" />

<script type="text/javascript">
var theImages = new Array()
theImages[0] = 'outriders(splash)-001.jpg'
theImages[1] = 'outriders(splash)-002.jpg'
theImages[2] = 'outriders(splash)-003.jpg'
theImages[3] = 'outriders(splash)-004.jpg'
theImages[4] = 'outriders(splash)-005.jpg'
theImages[5] = 'outriders(splash)-006.jpg'
theImages[6] = 'outriders(splash)-007.jpg'
theImages[7] = 'outriders(splash)-008.jpg'
theImages[8] = 'outriders(splash)-009.jpg'
var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<img src="'+theImages[whichImage]+'">');
}
</script>
</head>


You should also move the background color of your body into CSS, like this:
CODE
body {
    background-color: #00000;
}

Then you can remove the bgcolor="#000000" from it.

Hope that helps you understand a bit.
User is offlineProfile CardPM
+Quote Post

Torroes_prime

RE: Showing In FF, Safarie, Opera And Chrome, But Not IE

2 Jul, 2009 - 11:26 AM
Post #5

D.I.C Head
**

Joined: 7 Jun, 2009
Posts: 71


My Contributions
QUOTE(MageUK @ 2 Jul, 2009 - 10:11 AM) *

Well, any XHTML Tutorial should have told you that every HTML Document requires a Doctype.


Hmmm... donno what to say. I made over 2 dozen webpages out of those tutorials and never had an issue nor a mention of Doctype.

QUOTE

Stick this at the top of your page:
CODE
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


Quirks mode is, let's say, a backwards compatible rendering engine. It enables "Quirks" in certain browsers, to replicate the "quirks" of older browsers (namely IE4,5,6).

You don't need to read up much on it, since you won't be using it smile.gif

Also XHTML Tutorials should have told you that all of the tags are lowercase, so <script LANGUAGE is invalid, so is the language attribute of your script tag... The start of your document correctly formed would look like this:
CODE
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<title>Welcome to the Outriders!</title>
<link href="outriders.css" rel="stylesheet" type="text/css" />

<script type="text/javascript">
var theImages = new Array()
theImages[0] = 'outriders(splash)-001.jpg'
theImages[1] = 'outriders(splash)-002.jpg'
theImages[2] = 'outriders(splash)-003.jpg'
theImages[3] = 'outriders(splash)-004.jpg'
theImages[4] = 'outriders(splash)-005.jpg'
theImages[5] = 'outriders(splash)-006.jpg'
theImages[6] = 'outriders(splash)-007.jpg'
theImages[7] = 'outriders(splash)-008.jpg'
theImages[8] = 'outriders(splash)-009.jpg'
var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<img src="'+theImages[whichImage]+'">');
}
</script>
</head>



Chances are we'll cover this when I get to actually take the class, but curiosity question:

originally I had
CODE

<script language="javascript">

and my Java script worked just fine

Just to see what would change, I swapped it for the:
CODE

<script type="text/javascript">

you recommended. I didn't notice any difference. Script still worked just fine, nothing changed on the page.

What's the difference?
User is offlineProfile CardPM
+Quote Post

RudiVisser

RE: Showing In FF, Safarie, Opera And Chrome, But Not IE

2 Jul, 2009 - 11:38 AM
Post #6

.. does not guess solutions
Group Icon

Joined: 5 Jun, 2009
Posts: 1,872



Thanked: 137 times
Dream Kudos: 125
Expert In: PHP, MySQL, HTML, CSS, C#

My Contributions
It's standards compliant, it won't change operation smile.gif

But it should really tell you about Doctypes, what tutorials are you using?
User is offlineProfile CardPM
+Quote Post

Quin

RE: Showing In FF, Safarie, Opera And Chrome, But Not IE

2 Jul, 2009 - 11:56 AM
Post #7

D.I.C Head
Group Icon

Joined: 16 Oct, 2008
Posts: 212



Thanked: 9 times
Dream Kudos: 50
My Contributions
'min-height' doesn't work with IE, nor does 'min-width'.

You ought to indent your coding, makes it easier to read, mainly because I've made several modifications to this post with different solutions; all based around having a tidy code.

((DOCTYPES have never given me trouble in the past, when I've not included them, but its good practise to include them))

This post has been edited by Quin: 2 Jul, 2009 - 12:14 PM
User is offlineProfile CardPM
+Quote Post

RudiVisser

RE: Showing In FF, Safarie, Opera And Chrome, But Not IE

2 Jul, 2009 - 12:26 PM
Post #8

.. does not guess solutions
Group Icon

Joined: 5 Jun, 2009
Posts: 1,872



Thanked: 137 times
Dream Kudos: 125
Expert In: PHP, MySQL, HTML, CSS, C#

My Contributions
QUOTE(Quin @ 2 Jul, 2009 - 11:56 AM) *

((DOCTYPES have never given me trouble in the past, when I've not included them, but its good practise to include them))

Take a look here for different reactions in diff browsers.
User is offlineProfile CardPM
+Quote Post

neit

RE: Showing In FF, Safarie, Opera And Chrome, But Not IE

2 Jul, 2009 - 02:50 PM
Post #9

D.I.C Head
**

Joined: 13 Feb, 2009
Posts: 137



Thanked: 12 times
My Contributions
I see the image section fine in IE.
There are a few others such as a few of the mention links not working and there's an issue with the members page. but I'm sure you know about those.
User is offlineProfile CardPM
+Quote Post

Torroes_prime

RE: Showing In FF, Safarie, Opera And Chrome, But Not IE

2 Jul, 2009 - 08:05 PM
Post #10

D.I.C Head
**

Joined: 7 Jun, 2009
Posts: 71


My Contributions
QUOTE(MageUK @ 2 Jul, 2009 - 11:38 AM) *

It's standards compliant, it won't change operation smile.gif

But it should really tell you about Doctypes, what tutorials are you using?


It's the tutorials out of my text book for Introduction to Computer Applications and Concepts.

Here's the info on the book if you wanna check it out:
New Perspectives: HTML and XHTML. Introductory Level 5th Edition
Author: Patrick Carey
Copy Write 2009 Course Technology, Cengage Learning.
User is offlineProfile CardPM
+Quote Post

Torroes_prime

RE: Showing In FF, Safarie, Opera And Chrome, But Not IE

2 Jul, 2009 - 10:00 PM
Post #11

D.I.C Head
**

Joined: 7 Jun, 2009
Posts: 71


My Contributions
QUOTE(neit @ 2 Jul, 2009 - 02:50 PM) *

I see the image section fine in IE.
There are a few others such as a few of the mention links not working and there's an issue with the members page. but I'm sure you know about those.




the mention links? Not sure what you're referring to. I know the 'News' 'Members' and 'join' links should be null and lead to nothing but a reload of the current page. The actually website is kinda somewhere below the "concept" stages. I took Introduction to Computer Applications and concepts last semester and we spent 2 classes on web pages. I rather enjoyed it, so I kept going in the book well and totally beyond where the class covered (for reference sack, Chapter 2 was about adding hyper links and that was where we stopped). My villain group on City of heroes decided it'd be a good idea to have a website so I took what I got out of my text book and am applying to actually making a web page. Right now, the website is at the "This would be cool. I wonder if I could do it?" stage.


Hmmm, a friend recommended I feed the site through a code validator. He threw me a link to http://www.w3schools.com/site/site_validate.asp for a validator. I ran the page through and I'm kinda scratching my head at the results.



I guess it'd be easier for you guys to run it through and see the results for yourself then for me to sit here and list em off.

but the one that's getting me is:

"XML Parsing Error: Opening and ending tag mismatch:"

I got that 7 times for the </html> tag.... um huh?


User is offlineProfile CardPM
+Quote Post

neit

RE: Showing In FF, Safarie, Opera And Chrome, But Not IE

3 Jul, 2009 - 06:50 AM
Post #12

D.I.C Head
**

Joined: 13 Feb, 2009
Posts: 137



Thanked: 12 times
My Contributions
sorry that was a typo supposed to be main links.

I would use the validator at http://www.w3.org/

The site looks fine for me in IE7 except issue with the members page.

It will just be a matter of learning and trying to make new sites to
you get to the stage where you will get the design right, then go further and make those standards compliant if thats the way you want to go.
User is offlineProfile CardPM
+Quote Post

Torroes_prime

RE: Showing In FF, Safarie, Opera And Chrome, But Not IE

3 Jul, 2009 - 08:25 PM
Post #13

D.I.C Head
**

Joined: 7 Jun, 2009
Posts: 71


My Contributions
QUOTE(neit @ 3 Jul, 2009 - 06:50 AM) *

sorry that was a typo supposed to be main links.

I would use the validator at http://www.w3.org/

The site looks fine for me in IE7 except issue with the members page.

It will just be a matter of learning and trying to make new sites to
you get to the stage where you will get the design right, then go further and make those standards compliant if thats the way you want to go.



what issue with the members page are you referring to? I'm looking at it in IE 7, IE 8, Firefox 2 and 3, Opera, Safari and Chrome. I don't see any issues with it.
User is offlineProfile CardPM
+Quote Post

neit

RE: Showing In FF, Safarie, Opera And Chrome, But Not IE

4 Jul, 2009 - 05:16 AM
Post #14

D.I.C Head
**

Joined: 13 Feb, 2009
Posts: 137



Thanked: 12 times
My Contributions
Its not there now.
There was a cap between the red spikey border and the red footer below
User is offlineProfile CardPM
+Quote Post

Torroes_prime

RE: Showing In FF, Safarie, Opera And Chrome, But Not IE

5 Jul, 2009 - 05:36 PM
Post #15

D.I.C Head
**

Joined: 7 Jun, 2009
Posts: 71


My Contributions
QUOTE(neit @ 4 Jul, 2009 - 05:16 AM) *

Its not there now.
There was a cap between the red spikey border and the red footer below



Hmmm donno what to say. I never saw so I didn't fix it. Maybe I tweaked something in the CSS file that fixed it.

well, I've fixed a couple things and started working on a couple others. But now I've got a new little glitch. I have the Background Div with a background image set to repeat. But for some reason it's not repeating behind the foot1 div on one page (so far). Here's the page where it's not showing: http://www.mgc-projects.info/Web_pages/Out...rusherResad.htm

any ideas what I borked here?

This post has been edited by Torroes_prime: 5 Jul, 2009 - 07:23 PM
User is offlineProfile CardPM
+Quote Post

PsychoCoder

RE: Showing In FF, Safarie, Opera And Chrome, But Not IE

5 Jul, 2009 - 05:43 PM
Post #16

Dyslexics Untie!
Group Icon

Joined: 26 Jul, 2007
Posts: 14,714



Thanked: 501 times
Dream Kudos: 11450
Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, Boo.Net, jQuery

My Contributions
That is done using Thickbox
User is offlineProfile CardPM
+Quote Post

Torroes_prime

RE: Showing In FF, Safarie, Opera And Chrome, But Not IE

5 Jul, 2009 - 07:25 PM
Post #17

D.I.C Head
**

Joined: 7 Jun, 2009
Posts: 71


My Contributions
QUOTE(PsychoCoder @ 5 Jul, 2009 - 05:43 PM) *

That is done using Thickbox



Yeah, found that out. Looked at the page source and noticed the lightbox info. Did some research into and viola. Got it installed. Thanks for the info though.

Now, if I just figure out why the background isn't working on that one div....
User is offlineProfile CardPM
+Quote Post

Torroes_prime

RE: Showing In FF, Safarie, Opera And Chrome, But Not IE

6 Jul, 2009 - 10:41 AM
Post #18

D.I.C Head
**

Joined: 7 Jun, 2009
Posts: 71


My Contributions
QUOTE(Torroes_prime @ 5 Jul, 2009 - 07:25 PM) *

QUOTE(PsychoCoder @ 5 Jul, 2009 - 05:43 PM) *

That is done using Thickbox



Yeah, found that out. Looked at the page source and noticed the lightbox info. Did some research into and viola. Got it installed. Thanks for the info though.

Now, if I just figure out why the background isn't working on that one div....



and nevermind. it seems to have fixed itself....
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/8/09 02:13AM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month