Jump to content


Photo

works in IE, not firefox


  • Please log in to reply
1 reply to this topic

#1 aebstract

aebstract
  • Members
  • PipPipPip
  • Advanced Member
  • 1,105 posts

Posted 27 October 2006 - 02:26 PM

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

stylesheet.css
/* 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;
}

Thanks a lot!

There is an area of the mind that could be called unsane, beyond sanity, and yet
not insane. Think of a circle with a fine split in it. At one end there's
insanity. You go around the circle to sanity, and on the other end of the
circle, close to insanity, but not insanity, is unsanity.


#2 ToonMariner

ToonMariner
  • Members
  • PipPipPip
  • Advanced Member
  • 3,342 posts
  • LocationNewcastle upon Tyne, UK

Posted 28 October 2006 - 02:01 PM

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
follow me on twitter @PHPsycho




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users