Jump to content

works in IE, not firefox


aebstract

Recommended Posts

Help please, You can view the example link in Internet Explorer working perfectly, and then go in firefox and you will see what is wrong. Please help me get my code so that they both look like the one in IE. Needs to get fixed asap, in the next few hours would be awesome.
http://heritagehouseholidays.com

index.php
[code]<HTML>
<HEAD>
<link href="misc/stylesheet.css" rel="stylesheet" type="text/css" title="default" />
<META http-equiv=Content-Language content=en-gb>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META
content="Heritage House Holidays offers the chance to view britains vast royal history and enjoy the sights of country of england."
name=description>
<META
content="watford hotels, hotels in watford, luxury hotels in watford, cheap hotels watford, book hotel watford, heritage house"
name=keywords>
<META content="MSHTML 6.00.2900.2604" name=GENERATOR>
<TITLE>HERITAGE HOUSE HOLIDAYS</TITLE>
</HEAD>
<body>



<div id="container">
<div id="container2">
<div id="header"></div>
<div id="navholder">
<div id="navigation">
<?php
echo '<ul id="navlist">
<li'.(($page == 'home' || empty($page)) ? ' class="active"' : '').'><a href="index.php">Home</a></li>

<li'.(($page == 'about') ? ' class="active"' : '').'><a href="index.php?page=about">About</a></li>

<li'.(($page == 'gallery') ? ' class="active"' : '').'><a href="index.php?page=gallery">Gallery</a></li>

<li'.(($page == 'order') ? ' class="active"' : '').'><a href="index.php?page=order">Order</a></li>

<li'.(($page == 'calendar') ? ' class="active"' : '').'><a href="index.php?page=calendar">Calendar</a></li>

<li'.(($page == 'contact') ? ' class="active"' : '').'><a href="index.php?page=contact">Contact</a></li>
</ul>';
?>
</div>
</div>

<div id="content">

<?php
if (isset($page)) {
include "$page.php";
} else {
include "home.php";
}
?>

</div>


<div id="footer">
<div id="copyright">
copyright
</div></div>
</div>
</div>



</BODY></HTML>
[/code]

stylesheet.css
[code]/* CSS Document */

html, body { height: 100%; }
body {
background-color: #FFFFFF;
padding: 0px;
margin: 0px;
font-size : 11px;
line-height : 15px;
font-family : Verdana, Geneva, Arial, sans-serif;
}


#container {
    position: absolute; top: 0px; left: 0px;
    width: 100%;
    text-align: center;
}

#container2 {
    width: 700px;
    text-align: center;
}


#header {
background: url("http://www.heritagehouseholidays.com/header.jpg");
width:598 px;
height: 142px;
}



#navholder {
        position: relative; top: 0px;
        width: 600px;
        background-color: #ffffff;
}

#navigation ul {
  padding-left: 10px;
  padding-right: 10px;
  padding-top: 4px;
  padding-bottom: 4px;
margin: 0;
list-style-type: none;
text-align: center;
}

#navigation ul li {
display: inline;
}

#navigation ul li a {
  padding-left: 10px;
  padding-right: 10px;
  padding-top: 2px;
  padding-bottom: 2px;
text-decoration: none;
color: #000000;
background-color: #EED5D2;
display: block;
float: left;
border-right: 2px solid #ffffff;
}

#navigation ul li a:hover {
  padding-left: 10px;
  padding-right: 10px;
  padding-top: 2px;
  padding-bottom: 2px;
color: #ffffff;
  background-color: #802A2A;
}

#navigation ul li.active a {
  padding-left: 10px;
  padding-right: 10px;
  padding-top: 2px;
  padding-bottom: 2px;
color: #ffffff;
background-color: #CD5C5C;
  border-bottom-color: #ffffff;
}

#navigation ul li a:active {
  padding-left: 10px;
  padding-right: 10px;
  padding-top: 2px;
  padding-bottom: 2px;
color: #ffffff;
background-color: #CD5C5C;
  border-bottom-color: #ffffff;
}



#content {
position: relative; top: 0px;
    width: 600px;
background-color: #CD5C5C;
padding: 5px;
}

#footer {
position: relative; top: 10px;
background-color: #8B3A3A;
width:600 px;
}

#copyright {
  padding-top: 10px;
  padding-bottom: 10px;
color: #ffffff;
}[/code]

Thanks a lot!
Link to comment
Share on other sites

So much going on!!!!

Firstly place a doc type declaration at the top.

Now the first issue of getting the page centered...

DO NOT use the text align to get the page centered... Set the width of the html to 100% and then the width of the body tag to what you want (700px) and then use margin: 10px auto;

That will give a margin at tht top and bottom of the page of 10px and center the rest.

You have unneccessary html in there - you don't need container2....

all your tags should be lower case - (is frontpage involved here??? don't use it its crap!)

Any more help just post here or feel free to IM me on messenger
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.