Current location: Hot Scripts Forums » General Web Coding » CSS » CSS Issue in Firefox


CSS Issue in Firefox

Reply
  #1 (permalink)  
Old 01-12-07, 10:22 PM
TheScreenSaver24's Avatar
TheScreenSaver24 TheScreenSaver24 is offline
Newbie Coder
 
Join Date: Nov 2006
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
CSS Issue in Firefox

The background automatically repeats in IE, but in firefox it doesn't can somebody help. http://comwareservices.com/chuck/index.php
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>index</title>
<style type="text/css">
A {text-decoration: none; color: black}
A:link {text-decoration: none; color: black}
A:visited {text-decoration: none; color: black}
A:active {text-decoration: none; color: black}
A:hover {text-decoration: none; color: black}


td.pixel {



  border:1px solid #004a80;



}
 INPUT {
background-color: #003663;
color: white;
font-family: arial, verdana, ms sans serif;
font-weight: bold;
font-size: 10pt;
border-style:solid;
border-width:1px;
border-color:black; 
}
 SELECT {
background-color: #003663;
color: white;
font-family: arial, verdana, ms sans serif;
font-weight: bold;
font-size: 10pt;
border-style:solid;
border-width:1px;
border-color:black; 
}
 TEXTAREA {
background-color: #003663;
color: white;
font-family: arial, verdana, ms sans serif;
font-weight: bold;
font-size: 10pt;
border-style:solid;
border-width:1px;
border-color:black; 
}
/* End Of Default CSS */

/* Layout CSS */
html,body {
height: 100%;
font-family: Verdana, Arial, Helvetica, sans-serif;
text-align: center;
font-size: small;
color:#333333;
}
#container {
	margin: 0 auto;
	text-align: left;
	width:769px;
}
#top {
	width:769px;
	height:98px;
	background:url(images/top.png) no-repeat;
}
#middle {
	width:769px;
	background:url(images/middle.png);
}
#bottom {
	width:769px;
	height:28px;
	background:url(images/bottom.png) no-repeat;
	clear: both;
}
#content {
	width:750px;
	padding-left:20px;
	margin: 0 auto;
}
#leftcolumn {
	margin: 5px 5px 0px 5px;
	padding: 4px;
	width: 46%;
	float: left;
	border: 1px solid #ccc;
	background-color: #DAC8BF;
	}
* html #leftcolumn {height:370px} /* IE Min-Height Hack */ 

#centercolumn {
	border: 1px solid #ccc;
	margin: 5px 0px 0px 0px;
	padding: 4px;
	width: 46%;
	float: left;
	}
* html #centercolumn {height:370px} /* IE Min-Height Hack */ 
</style>
</head>
<body>
<div id="container">
<div id="top"></div>
<div id="middle">
	<div id="content">
	<div id="leftcolumn">Left Column
	</div>
	<div id="centercolumn">Right Column
	</div>
	</div>
</div>
<div id="bottom"></div>
</div>
</body>
</html>
Reply With Quote
  #2 (permalink)  
Old 01-13-07, 03:05 AM
Vicious's Avatar
Vicious Vicious is offline
Community VIP
 
Join Date: Jan 2007
Location: Belgium
Posts: 584
Thanks: 0
Thanked 0 Times in 0 Posts
How about:

Code:
#middle {
	width:769px;
	background:url(images/middle.png) repeat-y;
}
__________________
Jack Bauer makes Chuck Norris cry
Reply With Quote
  #3 (permalink)  
Old 01-13-07, 10:31 PM
TheScreenSaver24's Avatar
TheScreenSaver24 TheScreenSaver24 is offline
Newbie Coder
 
Join Date: Nov 2006
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
it doesn't do anything.
Reply With Quote
  #4 (permalink)  
Old 01-14-07, 05:04 AM
Vicious's Avatar
Vicious Vicious is offline
Community VIP
 
Join Date: Jan 2007
Location: Belgium
Posts: 584
Thanks: 0
Thanked 0 Times in 0 Posts
You have made your left & rightcolumn a float:left.

Apparently, in IE, the height of the container of these div's is stretched so it is wrapped around the two columns.

In FF, the container is not stretched, because "logically", these two columns are floating on top of them.

So you will have to make some changes. Get rid of the "float:left", and try something with "position:absolute".
__________________
Jack Bauer makes Chuck Norris cry
Reply With Quote
Reply

Bookmarks


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

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
IE and Firefox Table + CSS Help iidavidii HTML/XHTML/XML 5 12-04-06 11:29 AM
css firefox problems Crazyfist CSS 7 04-23-06 10:33 AM
CSS border problem in firefox, looks good in IE vertigoflow CSS 1 02-18-06 10:30 AM
CSS behaves in a different way in Firefox! Help! dangerous_liaison CSS 1 02-16-06 12:36 PM
css issue darkcarnival CSS 4 10-11-05 08:35 PM


All times are GMT -5. The time now is 01:59 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.