User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 375,214 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,278 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 312 | Replies: 4
Reply
Join Date: Dec 2007
Posts: 15
Reputation: plarsen111 is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
plarsen111 plarsen111 is offline Offline
Newbie Poster

Code broken in IE - Help School Teacher

  #1  
May 16th, 2008
Hi,

My web page looks fine in FireFox, but broken in IE.

http://www.hmstechnology.com/

Does anyone know how I can fix this?

Thanks,

Phil

You can probably view the code even though I use frames, but here is the code with CSS.

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <html>
  3. <head>
  4. <title>Welcome!</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  6. <script type="text/javascript">
  7. function MM_CheckFlashVersion(reqVerStr,msg){
  8. with(navigator){
  9. var isIE = (appVersion.indexOf("MSIE") != -1 && userAgent.indexOf("Opera") == -1);
  10. var isWin = (appVersion.toLowerCase().indexOf("win") != -1);
  11. if (!isIE || !isWin){
  12. var flashVer = -1;
  13. if (plugins && plugins.length > 0){
  14. var desc = plugins["Shockwave Flash"] ? plugins["Shockwave Flash"].description : "";
  15. desc = plugins["Shockwave Flash 2.0"] ? plugins["Shockwave Flash 2.0"].description : desc;
  16. if (desc == "") flashVer = -1;
  17. else{
  18. var descArr = desc.split(" ");
  19. var tempArrMajor = descArr[2].split(".");
  20. var verMajor = tempArrMajor[0];
  21. var tempArrMinor = (descArr[3] != "") ? descArr[3].split("r") : descArr[4].split("r");
  22. var verMinor = (tempArrMinor[1] > 0) ? tempArrMinor[1] : 0;
  23. flashVer = parseFloat(verMajor + "." + verMinor);
  24. }
  25. }
  26. // WebTV has Flash Player 4 or lower -- too low for video
  27. else if (userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 4.0;
  28.  
  29. var verArr = reqVerStr.split(",");
  30. var reqVer = parseFloat(verArr[0] + "." + verArr[2]);
  31.  
  32. if (flashVer < reqVer){
  33. if (confirm(msg))
  34. window.location = "http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash";
  35. }
  36. }
  37. }
  38. }
  39. </script>
  40. <style type="text/css">
  41. <!--
  42. body {
  43. background-color:#FFFFFF;
  44. font-family:Arial, Helvetica, sans-serif
  45. }
  46. body,td,th {
  47. color: #000000;
  48. }
  49. a:link {
  50. color: #FF0000;
  51. text-decoration: underline;
  52. }
  53. a:visited {
  54. text-decoration: underline;
  55. color: #FF0000;
  56. }
  57. a:hover {
  58. text-decoration: none;
  59. }
  60. a:active {
  61. text-decoration: underline;
  62. }
  63.  
  64. h1 {
  65. font-size:36px;
  66. text-align:left;
  67. letter-spacing:1px;
  68. border-top: 1px solid;
  69. border-left: 2px solid;
  70. padding:15px;
  71. margin-left:25px;
  72. margin-top:25px;
  73. }
  74.  
  75. #assignmentblock {
  76. width:30%;
  77. height:400px;
  78. }
  79.  
  80. #assignmentblock p {
  81. padding:15px;
  82. font-size:18px;
  83. border-left: 2px solid;
  84. }
  85.  
  86. .lesson {
  87.   font-size: 14px;
  88. color:#FF0000;
  89. }
  90.  
  91. #extras {
  92. position: absolute;
  93. top:28px;
  94. left:300px;
  95. width:400px;
  96. border: 2px solid;
  97. margin-left:30px;
  98. padding:18px;
  99. font-size:22px;
  100. color:#666666;
  101. }
  102.  
  103. img {
  104. float:left;
  105. margin:15px;
  106. }
  107.  
  108. -->
  109. </style>
  110. <script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
  111. </head>
  112.  
  113. <body alink="#ffffff" onLoad="MM_CheckFlashVersion('7,0,0,0','Got Flash? Download here!');">
  114.  
  115. <div id="assignmentblock">
  116.  
  117. <h1>6th Grade<br>
  118. <span class="lesson">We are either starting a new assignment or having another Make-Up Free Day. You get to vote!</span>
  119. </h1>
  120.  
  121. <h1>7th Grade<br>
  122. <span class="lesson">We are either starting a new assignment or having another Make-Up Free Day. You get to vote!</span>
  123. </h1>
  124.  
  125. <h1>8th Grade<br>
  126. <span class="lesson">We are either starting a new assignment or having another Make-Up Free Day. You get to vote!</span>
  127. </h1>
  128.  
  129. </div>
  130.  
  131. <div id="extras">
  132. <p><img src="owen.jpg" height="241" width="182">Owen got a little case of pnemonia. Doing much better now. He spent a few nights in the hospital. He didn't like the "pokes", but he sure did get a lot of toys.
  133. </p>
  134. </div>
  135.  
  136. </body>
  137. </html>
Last edited by peter_budo : May 16th, 2008 at 5:08 pm. Reason: Keep It Organized - please use [code] tags
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Dec 2004
Location: London or Slovakia
Posts: 1,924
Reputation: peter_budo has a spectacular aura about peter_budo has a spectacular aura about peter_budo has a spectacular aura about 
Rep Power: 9
Solved Threads: 221
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Posting Virtuoso

Re: Code broken in IE - Help School Teacher

  #2  
May 16th, 2008
No, page is looking wrong in both browsers. Two of your DIV tags are overlaping
#assignmentblock {
	width:30%;
	height:400px;
	}	

#extras {
	position: absolute;
	top:28px;
	left:300px;
	width:400px;
	border: 2px solid;
	margin-left:30px;
	padding:18px;
	font-size:22px;
	color:#666666;
	}
This tutorial will help you solve your problem. If however you can't work it out just let me know I will correct it and explain
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

If we helped you to solve your problem, answered your question please mark your post as SOLVED.
Reply With Quote  
Join Date: May 2008
Posts: 14
Reputation: jhaycutexp is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 2
jhaycutexp jhaycutexp is offline Offline
Newbie Poster

Re: Code broken in IE - Help School Teacher

  #3  
May 16th, 2008
it looks fine in IE to me... just for some extra spacing to the sides

add this to your css teach

*{margin:0;
padding:0;
}
Reply With Quote  
Join Date: Jan 2007
Posts: 2,433
Reputation: MidiMagic is on a distinguished road 
Rep Power: 6
Solved Threads: 99
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Nearly a Posting Maven

Re: Code broken in IE - Help School Teacher

  #4  
May 17th, 2008
It's the same (and working) in both browsers for me.
Daylight-saving time uses more gasoline
Reply With Quote  
Join Date: Dec 2004
Location: London or Slovakia
Posts: 1,924
Reputation: peter_budo has a spectacular aura about peter_budo has a spectacular aura about peter_budo has a spectacular aura about 
Rep Power: 9
Solved Threads: 221
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Posting Virtuoso

Re: Code broken in IE - Help School Teacher

  #5  
May 17th, 2008
That will be because plarsen111 removed this section from original code
  1. <div id="extras">
  2. <p><img src="owen.jpg" height="241" width="182">Owen got a little case of pnemonia. Doing much better now. He spent a few nights in the hospital. He didn't like the "pokes", but he sure did get a lot of toys.
  3. </p>
  4. </div>
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

If we helped you to solve your problem, answered your question please mark your post as SOLVED.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb HTML and CSS Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the HTML and CSS Forum

All times are GMT -4. The time now is 3:08 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC