Jump to content

Browsers displaying differently


pyrodude

Recommended Posts

I've tested this code in IE and it displays fine, but Firefox places the navigation in the center of the page, which sends the div that is float:right off the page.  I'm not sure where the offending code is, but here's the html

 

<!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">
<head>
<title>Disc Golf NW.com</title>
<meta name="description" content="DiscGolfNW.com - The Inland northwest's premiere website for information about the fast-paced game of Disc Golf!" />
<meta name="Generator" content="" />
<meta name="robots" content="" />
<link rel="Website Icon" href="#" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="clccss.css" rel="stylesheet" type="text/css" />
</head>

<body class="bg_main" style="background-color: #5E945D">
<a name="top"></a>
<table id="outer" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td valign="top"><div id="main_inner">
        <!-- top areas begin-->
        <div id="logo">
        	 </div>
        <!-- top areas end-->
        <div class="clear"> </div>
        <!-- Path begin-->
        <div id="can_pathway"> <span class="pathway">Home</span></div>
        <!-- Path end-->
        <div id="mid_out">
          <div id="rightarea">
            <div class="clear"> </div>
            <!-- main begin-->
            <div id="main_area">
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td valign="top"><div id="rightmain">
                      <table cellpadding="0" cellspacing="0" class="moduletable">
                        <tr>
                          <td><table width="207px" border="0" cellpadding="0" cellspacing="0">
                              <tr>
                                <td><a class="mainlevel" id="active_menu" target="MainFrame" href="main.html">Home</a></td>
                              </tr>
                              <tr>
                                <td><a class="mainlevel" target="MainFrame" href="how/how.html">Learn How To Play</a></td>
                              </tr>
                              <tr>
                                <td><a class="mainlevel" target="MainFrame" href="tournaments/tournaments.html">Tournaments</a> </td>
                              </tr>
                              <tr>
                                <td><a class="mainlevel" target="MainFrame" href="gallery/gallery.html">Photo Gallery</a></td>
                              </tr>
                              <tr>
                                <td><a href="http://www.discgolfnw.com/PDGA2007rulebook.pdf" class="mainlevel">PDGA Rule Book</a></td>
                              </tr>
                              <tr>
                                <td><a class="mainlevel" target="MainFrame" href="contact/contact.html">Contact us</a></td>
                              </tr>
                              <tr>
                                <td><a class="mainlevel" target="MainFrame" href="games/games.html">Fun & Games</a></td>
                              </tr></table>
                           </td>
                        </tr>
                      </table>
                    </div></td>
                  <td style="width:1px;"> </td>
                  <td valign="top"><div class="left_edge">
                      <div class="right_edge">
                        <div class="top_edge">
                          <div class="top_lcorner">
                            <div class="top_rcorner"> </div>
                          </div>
                        </div>                        <div class="corner_inner">
                          <div id="main_body">
                            <table cellpadding="0" cellspacing="0">
                              <tr>
                                <td valign="top"><div>
                                    <table class="contentpaneopen">
                                      <tr>
                                      	<td>
                                        <div class="componentheading"> 
											Welcome </div>
                                        </td>
                                      </tr>
                                    </table>
                                    <table class="contentpaneopen">
                                      <tr>
                                        <td valign="top">
                                        <div id="main_content" style="width: 543px;">
									This is just a test
                                          </div>
                                          </td>
                                      </tr>
                                      </table> </div></td>
                              </tr>
                            </table>
                          </div>
                        </div>
                        
<div class="bottom_edge">
                          <div class="bot_lcorner">
                            <div class="bot_rcorner"> </div>
                          </div>
                        </div>
                      </div>
                    </div></td>
                </tr>
              </table>
            </div>
            <!-- main end-->
            <div class="clear"> </div>
          </div>
        </div>
        <!-- bottom begin-->
        <div class="clear"> </div>
        <div class="bottomcontainer">
          <table class="moduletable-topnav" cellpadding="0" cellspacing="0">
            <tr>
              <td><a class="topnav" target="MainFrame" href="main.html">Home</a> 
			| 
			<a class="topnav" target="MainFrame" href="how/how.html">
			Learn To Play</a> | 
			<a class="topnav" target="MainFrame" href="tournaments/tournaments.html">
			Tournaments</a> | 
			<a class="topnav" target="MainFrame" href="gallery/gallery.html">
			Photo Gallery</a> |
			<a class="topnav" target="MainFrame" href="contact/contact.html">
			Contact Us</a> </td>
            </tr>
          </table>
        </div>
        <div class="clear"> </div>
        <div id="footer"> Copyright Disc Golf NW, 2007</div>
        <!-- bottom end-->
      </div></td>
  </tr>
</table>
</body>
</html>

 

and here's the contents of clccss.css

 

div.clear {
clear : both;
}
.bg_main {
background-color : #e9e9e9;
padding : 0;
margin: 0px;
text-align : center;
vertical-align : top;
}
img {
border: 0px;
}
/* *******************************************  main outline*/
#outer {
top : 0px;
margin : 0px auto;
width: 754px;
text-align : left;
border : 1px solid #a6a6a6;
background-color: #fff;
}
#main_inner {
margin: 0px 5px 0px 5px;
width: 750px;
text-align : left;
border : 0px;
}
/* ******************************************* top area */
div#logo {
background : url(images/logo.jpg) top right no-repeat;
margin : 10px 0px 0px 0px;
height : 104px;
width : 745px;
text-align : left;
vertical-align : baseline;
}

#site_title {
position: relative;
z-index: 1;
top: 40px;
font-family: Arial, Helvetica, sans-serif;
font-size: 20pt;
text-transform: uppercase;
left: 20px;
}
/* *******************************************  top navi */
div#top_navi {
margin : 0px 0px 0px 0px;
padding : 75px 0px 0px 10px;
height : 18px;
text-align : left;
}
/* *******************************************  pathway */
#can_pathway {
background : url(images/bg_path.jpg) top rght repeat-x;
margin : 0px;
width : 100%;
height : 30px;
text-align : left;
padding-top: 5px;
padding-bottom: 0px;
padding-left: 0px;
padding-right: 0px;
background-image: url(images/bg_path.jpg);
background-repeat: repeat-x;
}
#can_pathway img {
margin : 8px 1px 1px 5px;
}
#can_pathway a, #can_pathway a:visited {
color : #ffffff;
font-size : 11px;
line-height : 17px;
font-weight : bold;
}
#can_pathway a:hover {
color : #FFAE60;
font-size : 11px;
line-height : 17px;
font-weight : bold;
}
.pathway {
margin : 0px;
border : 0;
font-size : 11px;
line-height : 17px;
font-weight : bold;
color : #ffffff;
padding-top: 0px;
padding-right: 0px;
padding-bottom: 0px;
padding-left: 10px;
}
a.pathway:link, a.pathway:visited {
color : #ffffff;
font-size : 11px;
line-height : 17px;
}
a.pathway:hover {
color : #FFAE60;
}
/* ******************************************* mid_out */
#mid_out {
margin-top : 5px;
padding : 0px;
width : 100%;
min-height : 100%;
}
/* ******************************************* leftside */
#leftmain {
float : right;
margin : 0px;
padding : 0px;
text-align : left;
width : 160px;
}
#rightmain {
float : left;
margin : 0px;
padding : 0px;
text-align : left;
width : 168px;
}
#rightmain table.moduletable {
margin-bottom : 3px;
padding : 0px;
text-align : left;
}
#rightmain table.moduletable th {
background : url(images/ltitle.jpg) no-repeat;
border : 0;
height : 22px;
font : bold 12px tahoma, Arial, Verdana, sans-serif, Helvetica;
color : #000000;
text-align : left;
text-indent : 10px;
padding : 0px 0px 3px;
margin : 0px;
line-height : 22px;
}
#leftmain table.moduletable th {
background : url(images/rtitle.jpg) no-repeat;
border : 0;
height : 22px;
font : bold 12px tahoma, Arial, Verdana, sans-serif, Helvetica;
color : #000000;
text-align : left;
text-indent: 5px;
padding: 0px 0px 0px 5px;
margin : 0px;
line-height : 22px;
background-position: left center;
}
#leftmain table.moduletable td {
font : normal 12px tahoma, Arial, Verdana, sans-serif, Helvetica;
color : #333;
text-align : left;
padding : 2px 0px 2px 0px;
}
#rightmain table.moduletable td {
font : normal 12px tahoma, Arial, Verdana, sans-serif, Helvetica;
color : #333;
text-align : left;
padding : 2px 0px 2px 0px;
}
/* ******************************************* right area */
#rightarea {
float : right;
margin-right: 5px;
padding : 0px;
text-align : left;
width : 560px;
}
#leftarea {
float : right;
margin-left: 5px;
padding : 0px;
text-align : left;
width : 175px;
}
/* ******************************************* main_area */
#main_area {
width : 100%;
margin : 0px 0px 4px 0px;
padding : 0px;
border : 0px;
text-align : left;
}
#main_body {
margin: 0px;
width : 100%;
padding : 0px;
border : 0px;
text-align : justify;
}
/* *******************************************  main corner*/
div.left_edge {
background: url(images/bg_rightside.gif) repeat-y right top;
margin-bottom : 7px;
}
div.right_edge {
background: url(images/bg_leftside.gif) repeat-y left top;
}
div.top_lcorner {
background: url(images/corner2.gif) no-repeat right top;
height : 6px;
}
div.top_rcorner {
background: url(images/corner1.gif) no-repeat left top;
height : 6px;
}
div.top_edge {
background : url(images/bg_corner1.gif) top right repeat-x;
height : 6px;
clear : both;
}
div.bot_lcorner {
background: url(images/corner4.gif) no-repeat right bottom;
height : 6px;
}
div.bot_rcorner {
background: url(images/corner3.gif) no-repeat left bottom;
height : 6px;
}
div.bottom_edge {
background : url(images/bg_corner2.gif) bottom right repeat-x;
height : 6px;
clear : both;
}
div.border {
border-left : 1px solid #d6d6d6;
border-right: 1px solid #d6d6d6;
padding : 0px;
}
div.corner_inner {
padding: 0px 5px 0px 5px;
}
/* ******************************************* bottom navi */
table.moduletable-topnav {
padding : 0;
text-align: center;
}
.moduletable-topnav td {
text-align : center;
color: #FFFFFF;
}
.topnav {
width : 0;
}
a.topnav:link, a.topnav:visited {
width : auto;
color : #fff;
border : 0;
margin : 0px 4px;
text-decoration : none;
font-weight : bold;
font-size : 8pt;
text-align: center;
padding-left: 10px;
}
a.topnav:hover {
color : #ccc;
text-align: center;
}
/* ******************************************* bottomcontainer */
div.bottomcontainer {
background : url(images/bg_bnavi.jpg) top right repeat-x;
margin : 0px 0px 0px 0px;
width : 100%;
height : 30px;
text-align : center;
padding-top : 5px;
}
/* ******************************************* Footer */
#footer {
width : 100%;
text-align : center;
font : normal 12px tahoma, Verdana, Arial, Helvetica, sans-serif;
color : #222;
line-height : 18px;
margin-right: 0;
margin-bottom: 0px;
margin-left: 0;
padding-bottom: 7px;
}
/* *******************************************  General CSS Styles  */
/*.body {
background		: #663300; 
padding			: 0; 
margin			: 0;
vertical-align	: top;
scrollbar-face-color: #666;
    scrollbar-shadow-color: #666;
    scrollbar-darkshadow-color: #ffffff;
    scrollbar-highlight-color: #666;
    scrollbar-3dlight-color: #ffffff;
    scrollbar-track-color: #e9e9e9;
    scrollbar-arrow-color: #ffffff;
}*/
td, div, p {
margin: 0px;
color : #000;
font-family : tahoma, Arial, Verdana, sans-serif, Helvetica;
font-size : 12px;
padding : 0px;
line-height : 17px;
}
a, a:link, a:visited {
color : #333;
text-decoration : none;
}
a:hover {
color : #158DD6;
text-decoration : none;
}
h1 {
font: bold 16px tahoma, Arial, Verdana, sans-serif, Helvetica;
color: #666;
margin: 0px;
padding: 0px;
}
h2 {
font: bold 15px tahoma, Arial, Verdana, sans-serif, Helvetica;
color: #666;
margin: 0px;
padding: 0px;
}
h3 {
font: bold 14px tahoma, Arial, Verdana, sans-serif, Helvetica;
color: #666;
margin: 0px;
padding: 0px;
}
h4 {
font: bold 12px tahoma, Arial, Verdana, sans-serif, Helvetica;
color: #666;
margin: 0px;
padding: 0px;
}
ol {
list-style : decimal inside;
padding : 0px;
margin : 0px;
}
ul {
margin : 0;
padding : 0;
list-style : disc inside;
}
li {
line-height : 17px;
padding : 0px 15px 0px 0px;
}
marquee {
background-color: #7490AA;
margin-right: 10px;
margin-left: 10px;
color: #FFFFFF;
margin-top: 5px;
margin-bottom: 5px;
padding-right: 3px;
padding-left: 3px;
}
blockquote {
margin : 10px;
margin-left : 30px;
padding : 0 10px 0 20px;
border-left : 5px solid #02609D;
background-color: #B1E0FE;
}
form {
margin : 0;
padding : 0;
}
select {
font-size : 12px;
font-weight : bold;
color : #333;
}
input {
padding : 0;
margin : 0;
}
code {
background-color: #B1E0FE;
border : 1px solid #025388;
text-align : left;
display: block;
margin-right: 10px;
margin-left: 10px;
padding: 5px;
margin-top: 5px;
margin-bottom: 5px;
}
/* ******************************************* MODULES */
table.moduletable {
border-width: 0px;
border-style: none;
border-color: inherit;
width : 100%;
padding : 0px;
margin : 0px 0px 0px 0px;
}
table.moduletable th {
height : 21px;
font-family : tahoma, Arial, Verdana, sans-serif, Helvetica;
font-size : 10px;
font-weight : bolder;
color : #333;
text-indent : 2em;
text-align : left;
padding : 0px 0px 0px 0px;
margin : 0px;
border : 0;
line-height : 28px;
}
table.moduletable td {
font : normal 11px tahoma, Arial, Helvetica, sans-serif;
color : #333;
text-align : left;
padding : 0px;
margin : 0px;
border : 0;
}
.moduletable a:link, .moduletable a:visited {
color : #333;
font-weight : bold;
font-size : 11px;
font-family : tahoma, Arial, Verdana, sans-serif, Helvetica;
text-decoration : none;
}
.moduletable a:hover {
color : #158DD6;
text-decoration : none;
}
table.moduletable ul {
padding : 0;
margin : 0 0 0 3px;
}
.button {
font : normal 10px tahoma, Arial, Helvetica, sans-serif;
padding : 2px 2px 0px 2px;
color : #ffffff;
border : 0px;
background-color: #158DD6;
}
.inputbox, .search {
font : normal 11px tahoma, Arial, Helvetica, sans-serif;
color : #333;
border : 1px solid #999;
background : url(images/bg_input.gif) repeat-x;
}
select.inputbox {
font : normal 11px tahoma, Arial, Helvetica, sans-serif;
color : #333;
border : 1px solid #E6D2B5;
background : #ffffff url(images/bg_input.gif);
}
/* ******************************************* CONTENT STYLES */
/*.contentpane, */
.contentpaneopen {
margin: 0px;
text-align : left;
color : #333;
padding : 0px;
width : 100%;
}
.contentpaneopen td {
margin: 0px;
padding: 0px;
}
.componentheading {
margin: 0px;
background: url(images/componentTitle.jpg) no-repeat;
background-position: left;
height: 20px;
width: 370PX;
padding: 8px 0px 0px 5px;
font : bold 12px tahoma, Arial, Verdana, sans-serif, Helvetica;
color : #FFFFFF;
text-align: left;
}
a.readon:link, a.readon:visited {
font : bold 10px Tahoma, Arial, Helvetica, sans-serif;
color : #333;
background : url(images/arrow.gif) no-repeat;
background-position: 10% 50%;
border : 1px solid #E0E0E0;
padding : 2px 4px 2px 20px;
white-space : nowrap;
float : right;
line-height : 10px;
text-align : left;
text-decoration : none;
}
a.readon:hover {
color : #158DD6;
text-decoration : none;
}

#main_content {
width: 100%;
padding-right: 5px;
padding-left: 5px;
}
/* ******************************************* MAIN AND SUB MENU SYSTEM  */
.mainlevel {
font : bold 12px Arial, Verdana, Helvetica, sans-serif;
line-height : 22px;
}
a.mainlevel:link, a.mainlevel:visited {
display : block;
background : url(images/navi.jpg) no-repeat;
padding : 0px 0px 0px 0px;
height : 22px;
font : bold 12px tahoma, Arial, Verdana, Helvetica, sans-serif;
color : #ffffff;
text-decoration : none;
text-indent : 15px;
border : 0px;
line-height : 22px;
}
a.mainlevel:hover {
background : url(images/navi_h.jpg) no-repeat;
color : #000;
text-decoration : none;
padding : 0px 0px 0px 0px;
}
a.mainlevel#active_menu {
background : url(images/navi_active.jpg) no-repeat;
color : #000;
padding: 0px 0px 0px 0px;
}
#active_menu {
background : url(images/navi_active.jpg) no-repeat;
color : #000;
padding : 0px 0px 0px 0px;
}
a.sublevel:link, a.sublevel:visited {
display : block;
padding : 0px 0px 0px 25px;
text-decoration : none;
font : bold 12px tahoma, Arial, Verdana, Helvetica, sans-serif;
color : #158DD6;
line-height : 16px;
}
a.sublevel:hover {
color : #333;
text-decoration : none;
}
a.sublevel#active_menu {
border : 0;
font : bold 12px tahoma, Arial, Verdana, Helvetica, sans-serif;
color : #158DD6;
text-decoration : none;
background : #ffffff;
line-height : 16px;
padding : 0px 0px 0px 25px;
}
/* ******************************************* TOP MENU SYSTEM  */
ul#mainlevel-nav {
list-style : none;
padding : 0;
margin : 50px 0px 0px 0px;
float : right;
white-space : nowrap;
color : #FFFFFF;
}
ul#mainlevel-nav li {
background : #158DD6 url(images/snavi1.gif) top right no-repeat;
width : auto;
width : 5%;
float : left;
color : #FFFFFF;
white-space : nowrap;
margin-right : 3px;
}
#mainlevel-nav li a {
background : url(images/snavi2.gif) top left no-repeat;
display : block;
height : 18px;
font : bold 12px tahoma, Verdana, Arial, Helvetica, sans-serif;
padding : 0px 12px 0px 0px;
text-decoration : none;
color : #FFFFFF;
line-height : 18px;
white-space : nowrap;
}
ul#mainlevel-nav li a:hover {
color : #FFFFFF;
background : url(images/snavi2.gif) top left no-repeat;
}
ul#mainlevel-nav li:hover {
background : #158DD6 url(images/snavi1.gif) top right no-repeat;
}

 

 

Any help would be greatly appreciated!

 

EDIT: I'm in the process of revamping this code - I know the links point to a non-existant iframe, that's next on the list

Link to comment
Share on other sites

I didn't even look in the code, but I will tell you something about IE vs. FireFox.

 

--> Always do testing in Firefox. Because IE has some flaws and overwrites the standards for itself. Sometimes this helps it to work...  ;D But then it doesn't work in FF  >:(

 

The biggest difference between the two is float divs. IE usually does it the way you want, but FF won't - because it follows the standard. You need to make sure the float divs work. Also look out for relative positioning. You might think that you aren't far from getting it to work, since it already works in IE, but this is FALSE!!!

 

If you can't debug the issue, you'll have to start over. And do the testing in FF. Trust me, I already had this problem an its not easy!!

Link to comment
Share on other sites

The biggest difference between IE and standards compliant browsers is the Box Model interpretation.  Using a strict doctype (I use xhtml 1.1) forces even IE 6 to work in standards compliant mode - this doesn't solve EVERY layout problem you will have but it DOES solve most of them...

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.