|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Sometimes displays in IE
Hi everyone,
I have posted here [HTML Programming] because I'm not entirely sure what forum this particular problem should be put in. I have a fixed menu that I include using php. From looking at the source code I can see that it has definately included the menu. However IE only displays the menu 50% of the time. I have no idea why. At first I thought it was because I have a javascript animation for it to slide down, but I removed that and I still get the same problem. To see what I mean please visit twisted-reality.co.uk using IE and refresh a few times. Firefox, Opera, Safari and Netscape all display the menu fine, but IE feels like it needs to be different. I'm new to this forum but I hope someone can help ![]() Twisted-Daemon |
|
#2
|
|||
|
|||
|
Can you post the code? Without seeing it, I would guess that it could be an issue related to positioning or validation.
|
|
#3
|
|||
|
|||
|
Post first the PHP code. That stuff. Then, post the parsed PHP code. (Hit 'view source' on page load)
|
|
#4
|
||||
|
||||
|
Why do you guys need the code posted here?
@Twisted_Daemon Welcome to DevShed Forums, Twisted_Daemon. ![]() Anyway, try removing the float:left from "#navbar". What happens when JavaScript support isn't enabled in the user's browser? I am concerned that your code is not following JavaScript Best Practices. I strongly recommend you read up on them. That navigation should be marked up as an unordered list. I suggest you learn how semantics apply to X/HTML. Semantics is really a very important subject when it comes to X/HTML. These three articles explain how to style lists. http://www.alistapart.com/articles/taminglists/ http://css.maxdesign.com.au/listutorial/ http://www.webreference.com/programming/css_lists/
__________________
Spreading knowledge, one newbie at a time. Learn CSS. | PHP includes | X/HTML Validator | CSS validator | Dynamic Site Solutions Design/program for Firefox (and/or Opera), apply fixes for IE, not the other way around. I'm looking for new clients. |
|
#5
|
|||
|
|||
|
Quote:
Oh haha I totally read over the part where he posted a link to his website. Good call. Last edited by Kravvitz : May 7th, 2008 at 12:20 PM. Reason: must we quote the entire post? :p |
|
#6
|
|||
|
|||
|
Hi guys,
I took away the the float statement from the css and commented out the start() function that called the javascript onload. To get the menu into the HTML I'm using : Code:
<div id="container">
<div id="top">
<img src="my header" alt="" />
</div>
<?php include("menu.php"); ?>
^^^ This php statement here
<div id="content">
The HTML for the menu is inserted correctly as you can see from the source code, however IE still only displays half of the time. Even when no javascript is called onload. What should appear is the closed menu ... |
|
#7
|
|||
|
|||
|
Where did he post the link? I can't see it.
Edit: Too little sleep . |
|
#8
|
|||
|
|||
|
The page is at twisted-reality.co.uk
![]() |
|
#9
|
|||
|
|||
|
Gah it's blocked by my school
![]() |
|
#10
|
||||
|
||||
|
Does setting the top property make a difference? What about the left property?
|
|
#11
|
|||
|
|||
|
Quote:
I'm actually not using the top or left property in my css. The content div is just set to float right so the fixed navbar just gets put in the top left by default I think. |
|
#12
|
||||
|
||||
|
Yes. I can see what your code is currently. However, I know that IE has issues calculating top:auto and left:auto. Hence, I'm curious if setting both to specific dimensions helps or not.
|
|
#13
|
|||
|
|||
|
Right... I've used the top and left attributes in my css now. However IE still won't display all of the time.
|
|
#14
|