...

View Full Version : Missing half of my divs?



iKillDesigns
11-09-2010, 06:11 PM
Doesn't work in Internet Explorer.
Works fine in Google Chrome.
Works fine in Firefox.
Works fine in Safari.

http://patriotpdm.com

It's missing the jquery menu on the right.
And below the menu, it's supposed to load text.
I'm not sure whats wrong with it.

The index.html contains the css for the menu.

mc752
11-10-2010, 09:15 PM
I ran it through the W3 validation service and found some errors.
Go here
http://validator.w3.org/check?uri=http://patriotpdm.com/&charset=(detect+automatically)&doctype=Inline&group=0&user-agent=W3C_Validator/1.1#result

IE is picky if you don't close a tag correctly it throws everything else off. You can also run your CSS to find errors, I find that it and this board has helped me in the past.

teedoff
11-10-2010, 09:26 PM
Also, more of an issue may be the units of measurements you have for the framesets. You dont specify what they are....pixels or what? that might be causing a big problem in IE.

iKillDesigns
11-10-2010, 11:01 PM
I put it through the validator but I wasn't sure by what it was telling me.

Units of measurements for the framesets? I'm not sure by what you mean...
Sorry I'm somewhat new to coding as this is my first website and obviously is a mess.

teedoff
11-11-2010, 03:11 AM
Here's one example. You have width=615 and height=17

615 what? pixels? percentage?


<div class="fl_right"><iframe src="http://free.timeanddate.com/clock/i23xoti5/fs13/fcfff/tct/pct/ahr/tt0/td2/ts1/tb2" frameborder="0" halign="right" width="615" height="17"></iframe></div>


I didnt look through the rest of your code to see if there were more. Again, this may not solve your issue, but it would definately cause issues as browsers have to guess at what unit of measurement you mean. Some might get it right, some might not.

While er're at it, I think the halign attribute is deprecated, so you may want to change that to align.

DrDOS
11-11-2010, 03:22 AM
width="615" height="17" Mr teedoff, that's the old depreciated way of specifying size, it doesn't require units, but it is better ( not absolutely required ) that it be quoted. I don't use it any more, I would have used style="width:615px;height:17px" . But it may be automatically generated and he may not have control of it.

PS: To OP, I just looked at your source code again, you have doctype strict, that doctype does not support inline styles. You might want to try transitional.

iKillDesigns
11-11-2010, 03:35 PM
Here's one example. You have width=615 and height=17

615 what? pixels? percentage?


<div class="fl_right"><iframe src="http://free.timeanddate.com/clock/i23xoti5/fs13/fcfff/tct/pct/ahr/tt0/td2/ts1/tb2" frameborder="0" halign="right" width="615" height="17"></iframe></div>


I didnt look through the rest of your code to see if there were more. Again, this may not solve your issue, but it would definately cause issues as browsers have to guess at what unit of measurement you mean. Some might get it right, some might not.

While er're at it, I think the halign attribute is deprecated, so you may want to change that to align.

Well I'm not sure if it matters, tho I will change it to px, but in the IE specific css file that I have, I have that iframe set to display at none.


width="615" height="17" Mr teedoff, that's the old depreciated way of specifying size, it doesn't require units, but it is better ( not absolutely required ) that it be quoted. I don't use it any more, I would have used style="width:615px;height:17px" . But it may be automatically generated and he may not have control of it.

PS: To OP, I just looked at your source code again, you have doctype strict, that doctype does not support inline styles. You might want to try transitional.

I changed it to a style but it still doesn't seem to fix my problem. I also went and changed my doctype to transitional but still, doesn't seem to have changed anything. Like I said above, I have that iframe set to display:none; if IE, if that helps out any. IE is quite frustrating.

iKillDesigns
11-15-2010, 04:46 PM
I'm still stuck on this and need to find a fix because this is one of the standstills im on.
I'm needing alot of help with this problem.

teedoff
11-15-2010, 05:02 PM
Ok well I see somehow you dont have a closing html tag. You also have in IE if statement AFTER your opening body tag. The html tag should probably be something like this:


<html xmlns="http://www.w3.org/1999/xhtml">

Try those two things and see what you have.

iKillDesigns
11-15-2010, 05:07 PM
The IE if statement I took from off a website and in their description, they said to put it in the body. Ill change this tho.

teedoff
11-15-2010, 05:13 PM
Well it may actually go in the body...the opening html tag was the one that would cause the most problems.

iKillDesigns
11-15-2010, 07:11 PM
I switched the html and tag and it didnt work, it took everything off center and messed up the positions.

teedoff
11-15-2010, 07:53 PM
I still dont see an opening <html> tag...You NEED that....whether thats whats causing your problems or not. Did you insert it and not upload your new file so that I could see it?

iKillDesigns
11-15-2010, 08:04 PM
I changed it just now.

teedoff
11-15-2010, 08:33 PM
You should really do some reading and learning on proper coding standards. Please dont take offfense to this.

You had many errors in your code. Many of which were the use of commenting, but they were improperly done.

A comment in html is like so:


<!--Comment Here-->
Not this:
<!--//##### --!>

You also have some other errors such as tags that dont exist like <pp></pp> or <h10>.

I do suggest you at least change your whole doctype to transistional like so:


<!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">

That will help with alot of your errors. Thats a start, but not completely going to fix your issues yet.

iKillDesigns
11-15-2010, 11:24 PM
That seems to have helped quite a bit. I have the menu back up now.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum