Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Old 03-16-2009, 03:38 PM Firefox div problem
Webmaster Talker

Latest Blog Post:
Sopa, pipa, acta & tpp?
Posts: 749
Name: Barry O' Brien
Location: Ireland
Trades: 0
He guy's it been a while since I was here good to be back.
I'm having a problem with firefox my header keeps coming down off the top of the page. It only seems to be with firefox cant figure it out, tested in IE, Opera & chrome all are ok.

Here's the page www.websiteforumz.com/blank2.php
And the code below please help thanks.


Code:
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
<!--
#header-c {
	width:100%;
	padding:0;
	margin:0;
}
#logo-div {
	left:0px;
	top:0px;
	width:141px;
	height:121px;
	z-index:1;
	float: left;
	overflow: hidden;
}
#header-top {
	top:0px;
	width:832px;
	height:58px;
	z-index:2;
	background-image: url(web/images/nav-top-r.jpg);
	background-repeat: no-repeat;
	background-position: top right;
	float: right;
}
#header-btm {
	top:58px;
	width:832px;
	height:58px;
	z-index:3;
	float: right;
}
#nav {
	left:0px;
	width:800px;
	height:83px;
	z-index:4;
	background-image: url(web/images/nav-top.jpg);
	background-repeat: repeat-x;
	background-position: bottom;
	min-height: 83px;
	max-height: 83px;
	float: left;
	margin-bottom: 10px;
}
#nav-2 {
	left:0px;
	width:800px;
	height:22px;
	z-index:5;
	background-color: #EBEBEB;
	min-height: 22px;
	max-height: 22px;
	float: left;
	margin-bottom: 10px;
}
#about {
	width:396px;
	height:113px;
	z-index:6;
	background-color: #EBEBEB;
	min-height: 113px;
	max-height: 113px;
	float: left;
	padding-bottom: 10px;
	margin-bottom: 17.5px;
}
#info {
	width:193px;
	height:256px;
	z-index:7;
	background-color: #FFFFFF;
	min-height: 256px;
	max-height: 256px;
	float: right;
}
#info-2 {
	width:193px;
	height:256px;
	z-index:8;
	background-color: #FFFFFF;
	min-height: 256px;
	max-height: 256px;
	float: right;
	margin-right: 10px;
}
#fourn-info {
	width:396px;
	height:113px;
	z-index:9;
	background-color: #EBEBEB;
	min-height: 113px;
	max-height: 113px;
	float: left;
}
#cnt-1 {
	width:250px;
	height:250px;
	z-index:10;
	background-color: #EBEBEB;
	min-height: 250px;
	max-height: 250px;
	float: left;
	margin-top: 12px;
}
#cnt-2 {
	width:250px;
	height:250px;
	z-index:11;
	background-color: #EBEBEB;
	min-height: 250px;
	max-height: 250px;
	float: right;
	margin-top: 10px;
}
#cnt-3 {
	width:250px;
	height:250px;
	z-index:12;
	background-color: #EBEBEB;
	min-height: 250px;
	max-height: 250px;
	float: right;
	margin-top: 10px;
	margin-right: 23px;
}
#footer-top {
	left:0px;
	width:100%;
	height:27px;
	z-index:13;
	background-color: #EBEBEB;
	min-height: 27px;
	max-height: 27px;
	float: left;
}
#footer-btm {
	left:0px;
	width:100%;
	height:90px;
	z-index:14;
	background-image: url(web/images/footer-btm.jpg);
	background-color: #82AFC6;
	min-height: 90px;
	max-height: 90px;
	float: left;
}
.clearer { clear:both; }
body {
	background-color: #FFFFFF;
	background-image: url(web/images/back.jpg);
	background-repeat: repeat-x;
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	bottom:0;
}
#container-2 {
	margin:0 auto;
	width:800px;
}
#fcontainer {
	width:100%;
	margin-top:20px;
}
#ad {
	width:200px;
	height:200px;
	margin:0 auto;
}
h1 {
	font-size: 14px;
	color: #000000;
}
h2 {
	font-size: 14px;
	color: #003B64;
}
h3 {
	font-size: 16px;
	color: #003B64;
}
h4 {
	font-size: 16px;
	color: #000000;
}
h5 {
	font-size: 18px;
	color: #003B64;
}
h6 {
	font-size: 24px;
	color: #003B64;
}
body,td,th {
	font-size: 15px;
	color: #000000;
	font-family: Tahoma, Arial, Helvetica;
}
</style>
</head>

<body>
<div id="header-c">
<div id="logo-div"><a href="#"><img src="web/images/logo.png" alt="" width="148" height="123" border="0" align="absmiddle" /></a></div>
<div id="header-top"></div>
<div id="header-btm"></div>
</div>

<div id="container-2">
<div id="nav"></div>
<div id="nav-2"></div>
<div id="about"></div>
<div id="info"></div>
<div id="info-2"></div>
<div id="fourn-info"></div>
<div id="cnt-1">
  <div align="center">Advertisment</div>
  <div id="ad"></div></div>
<div id="cnt-2"></div>
<div id="cnt-3"></div>
<div class="clearer"></div>
</div>

<div id="fcontainer">
<div id="footer-top"></div>
<div id="footer-btm"></div>
</div>


</body>
</html>
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
audiomad is offline
Reply With Quote
View Public Profile Visit audiomad's homepage!
 
 
Register now for full access!
Old 03-16-2009, 04:41 PM Re: Firefox div problem
Extreme Talker

Posts: 189
Trades: 0
i think it could be compleatly recoded but this css should work in firefox and other browsers.

Code:
html,body {
position:relative;
margin:0;
padding:0;
border:0;
}

#header-c {
    width:100%;
    padding:0;
    margin:0;
}
#logo-div {
    left:0px;
    top:0px;
    width:141px;
    height:121px;
    z-index:1;
    float: left;
    overflow: hidden;
}
#header-top {
    width:832px;
    height:58px;
position:absolute;
top:0;
right:0;
    z-index:2;
    background-image: url(web/images/nav-top-r.jpg);
    background-repeat: no-repeat;
    background-position: top right;
}
#header-btm {
    top:58px;
    width:832px;
    height:58px;
    z-index:3;
}
#nav {
    left:0px;
    width:800px;
    height:83px;
    z-index:4;
    background-image: url(web/images/nav-top.jpg);
    background-repeat: repeat-x;
    background-position: bottom;
    min-height: 83px;
    max-height: 83px;
    float: left;
    margin-bottom: 10px;
}
#nav-2 {
    left:0px;
    width:800px;
    height:22px;
    z-index:5;
    background-color: #EBEBEB;
    min-height: 22px;
    max-height: 22px;
    float: left;
    margin-bottom: 10px;
}
#about {
    width:396px;
    height:113px;
    z-index:6;
    background-color: #EBEBEB;
    min-height: 113px;
    max-height: 113px;
    float: left;
    padding-bottom: 10px;
    margin-bottom: 17.5px;
}
#info {
    width:193px;
    height:256px;
    z-index:7;
    background-color: #FFFFFF;
    min-height: 256px;
    max-height: 256px;
    float: right;
}
#info-2 {
    width:193px;
    height:256px;
    z-index:8;
    background-color: #FFFFFF;
    min-height: 256px;
    max-height: 256px;
    float: right;
    margin-right: 10px;
}
#fourn-info {
    width:396px;
    height:113px;
    z-index:9;
    background-color: #EBEBEB;
    min-height: 113px;
    max-height: 113px;
    float: left;
}
#cnt-1 {
    width:250px;
    height:250px;
    z-index:10;
    background-color: #EBEBEB;
    min-height: 250px;
    max-height: 250px;
    float: left;
    margin-top: 12px;
}
#cnt-2 {
    width:250px;
    height:250px;
    z-index:11;
    background-color: #EBEBEB;
    min-height: 250px;
    max-height: 250px;
    float: right;
    margin-top: 10px;
}
#cnt-3 {
    width:250px;
    height:250px;
    z-index:12;
    background-color: #EBEBEB;
    min-height: 250px;
    max-height: 250px;
    float: right;
    margin-top: 10px;
    margin-right: 23px;
}
#footer-top {
    left:0px;
    width:100%;
    height:27px;
    z-index:13;
    background-color: #EBEBEB;
    min-height: 27px;
    max-height: 27px;
    float: left;
}
#footer-btm {
    left:0px;
    width:100%;
    height:90px;
    z-index:14;
    background-image: url(web/images/footer-btm.jpg);
    background-color: #82AFC6;
    min-height: 90px;
    max-height: 90px;
    float: left;
}
.clearer { clear:both; }
body {
    background-color: #FFFFFF;
    background-image: url(web/images/back.jpg);
    background-repeat: repeat-x;
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    bottom:0;
}
#container-2 {
    margin:0 auto;
    width:800px;
}
#fcontainer {
    width:100%;
    margin-top:20px;
}
simster is offline
Reply With Quote
View Public Profile
 
Old 03-16-2009, 07:17 PM Re: Firefox div problem
Webmaster Talker

Latest Blog Post:
Sopa, pipa, acta & tpp?
Posts: 749
Name: Barry O' Brien
Location: Ireland
Trades: 0
Thanks it fixed the page but then when there was content it was back the same way any idea's?
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
audiomad is offline
Reply With Quote
View Public Profile Visit audiomad's homepage!
 
Old 03-16-2009, 08:26 PM Re: Firefox div problem
Webmaster Talker

Latest Blog Post:
Sopa, pipa, acta & tpp?
Posts: 749
Name: Barry O' Brien
Location: Ireland
Trades: 0
I cant get the h1 h2 etc to work either its usualy ie i have problems with strange.

Current page I'm using www.websiteforumz.com/main.php

Code:
   @charset "utf-8";
/* CSS Document */
#header-c {
	width:100%;
	padding:0;
	margin:0;
}
html,body {
	margin:0;
	padding:0;
	border:0;
}
#header-c {
    width:100%;
    padding:0;
    margin:0;
}
#logo-div {
    left:0px;
    top:0px;
    width:148px;
    height:121px;
    z-index:1;
    float: left;
	min-height:121px;
	max-height:121px;
}
#header-top {
    width:820px;
    height:58px;
	top:0px;
	z-index:2;
    background-image: url(web/images/nav-top-r.jpg);
    background-repeat: no-repeat;
    background-position: top right;
	float:right;
}
#header-btm {
	top:58px;
	width:820px;
	height:58px;
	z-index:3;
	left:141px;
	float:right;
}
#nav {
	left:0px;
	width:800px;
	height:83px;
	z-index:4;
	background-image: url(web/images/nav-top.jpg);
	background-repeat: repeat-x;
	background-position: bottom;
	min-height: 83px;
	max-height: 83px;
	float: left;
	margin-bottom: 10px;
}
#nav-2 {
	left:0px;
	width:800px;
	height:22px;
	z-index:5;
	background-color: #EBEBEB;
	min-height: 22px;
	max-height: 22px;
	float: left;
	margin-bottom: 10px;
}
#about {
	width:390px;
	height:113px;
	z-index:6;
	background-color: #EBEBEB;
	min-height: 113px;
	max-height: 113px;
	float: left;
	padding-bottom: 10px;
	margin-bottom: 17.5px;
	padding-left:6px;
}
#info {
	width:193px;
	height:266px;
	z-index:7;
	background-color: #FFFFFF;
	min-height: 266px;
	max-height: 266px;
	float: right;
}
#info-2 {
	width:193px;
	height:266px;
	z-index:8;
	background-color: #FFFFFF;
	min-height: 266px;
	max-height: 266px;
	float: right;
	margin-right: 10px;
}
#fourn-info {
	width:390px;
	height:123px;
	z-index:9;
	background-color: #EBEBEB;
	min-height: 123px;
	max-height: 123px;
	float: left;
	padding-left:6px;
}
#cnt-1 {
	width:250px;
	height:250px;
	z-index:10;
	background-color: #EBEBEB;
	min-height: 250px;
	max-height: 250px;
	float: left;
	margin-top: 12px;
}
#cnt-2 {
	width:250px;
	height:250px;
	z-index:11;
	background-color: #EBEBEB;
	min-height: 250px;
	max-height: 250px;
	float: right;
	margin-top: 10px;
}
#cnt-3 {
	width:250px;
	height:250px;
	z-index:12;
	background-color: #EBEBEB;
	min-height: 250px;
	max-height: 250px;
	float: right;
	margin-top: 10px;
	margin-right: 23px;
}
#footer-top {
	left:0px;
	width:100%;
	height:27px;
	z-index:13;
	background-color: #EBEBEB;
	min-height: 27px;
	max-height: 27px;
	float: left;
}
#footer-btm {
	left:0px;
	width:100%;
	height:90px;
	z-index:14;
	background-image: url(web/images/footer-btm.jpg);
	background-color: #82AFC6;
	min-height: 90px;
	max-height: 90px;
	float: left;
	color: #FFFFFF;
}
.clearer { clear:both; }
body {
	background-color: #FFFFFF;
	background-image: url(web/images/back.jpg);
	background-repeat: repeat-x;
	margin: 0px;
	bottom:0;
}
body,td,th {
	color: #000000;
	font-size: 12px;
	font-family: Tahoma, Arial, Helvetica;
}
#container-2 {
	margin:0 auto;
	width:800px;
}
#fcontainer {
	width:100%;
	margin-top:20px;
}
#ad {
	width:250px;
	height:250px;
	margin:0 auto;
}
h1 {
	font-size: 14px;
	color: #000000;
}
h2 {
	font-size: 14px;
	color: #003B64;
}
h3 {
	font-size: 16px;
	color: #003B64;
}
h4 {
	font-size: 16px;
	color: #000000;
}
h5 {
	font-size: 18px;
	color: #003B64;
}
h6 {
	font-size: 24px;
	color: #003B64;
}
a {
	font-size: 14px;
	color: #006699;
}
a:visited {
	color: #006699;
}
a:hover {
	color: #0099CC;
}
a:active {
	color: #0099CC;
}
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
audiomad is offline
Reply With Quote
View Public Profile Visit audiomad's homepage!
 
Old 03-16-2009, 08:50 PM Re: Firefox div problem
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Your floats are not properly cleared ! See the stickies, but all you need to do is add overflow:auto to #header-c.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 03-16-2009, 09:40 PM Re: Firefox div problem
Webmaster Talker

Latest Blog Post:
Sopa, pipa, acta & tpp?
Posts: 749
Name: Barry O' Brien
Location: Ireland
Trades: 0
I cant thank you enough that fixed the layout issue thank you. I'l look into the clear issue now thanks again I've been at this all day trying to figure out.
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
audiomad is offline
Reply With Quote
View Public Profile Visit audiomad's homepage!
 
Reply     « Reply to Firefox div problem
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.22919 seconds with 12 queries