itssawyer
05-14-2009, 01:54 PM
I am making this layout with image slicing, and when i put the images together as bg of divs, it all looks good in IE, but when i see the image in firefox, theres a big gap on between the second and last image. I will show a screenshot below with the coding.
http://www.freewebs.com/theunlimited/ss.PNG
<html>
<head>
<title></title>
<SCRIPT LANGUAGE='JAVASCRIPT' TYPE='TEXT/JAVASCRIPT'>
<!--
var popupWindow=null;
function popup(mypage,myname,w,h,pos,infocus){
if (pos == 'random')
{LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;
}
else
{LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
settings='width='+ w + ',height='+ h + ',top=' + TopPosition + ',left=' + LeftPosition +
',scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';popupWindo w=window.open('',myname,settings);
if(infocus=='front'){popupWindow.focus();popupWindow.location=mypage;}
if(infocus=='back'){popupWindow.blur();popupWindow.location=mypage;popupWindow.blur();}
}
// -->
</script>
<LINK href="css.css" rel="stylesheet" type="text/css">
</head>
<body>
<table>
<!-- HEADER -->
<tr>
<td p align="left" valign="bottom">
<div id="header">
<!-- MENU -->
<a href="#">HOME</a>
<a href="#">WORLD</a>
<a href="#">US</a>
<a href="#">TECH</a>
<a href="#">ART&CUTLURE</a>
<a href="#">BUSINESS</a>
<a href="#">SPORTS</a>
<a href="#">MISCELANEOUS</a>
<a href="javascript:popup('windowpop.html','windowpop','578','550','center','front');">SUBMIT</a>
<a href="#">CONTACT</a>
<h2>
</div>
</td>
</tr>
<tr>
<td p align="center">
<div id="menu">
<p><br><p>
</div>
</td>
</tr>
<tr>
<td p align="center">
<div id="body">
body
</div>
</td>
</tr>
<!-- FOOTER -->
<tr>
<td p align="center">
<div id="footer">
<h3>© Copyright 2009-'10</h3>
</div>
</td>
</tr>
</body>
</html>
* {
cell-padding: 0px;
border: 0px;
border-spacing: 0px;
border-collapse: collapse;
}
h1 {
color: #cccccc;
font-size: 16px;
text-decoration: underline overline;
font-family: arial;
}
body {
background-color: #cccccc;
border: 0px;
cell-padding: 0px;
border-spacing: 0px;
cell-spacing: 0px;
border-collapse: collapse;
font-family: eurostyle, myraid, tahoma;
}
table {
border: 0px;
cell-padding: 0px;
border-spacing: 0px;
cell-spacing: 0px;
border-collapse: collapse;
}
tr {
border: 0px;
padding: 0px;
border-spacing: 0px;
cell-spacing: 0px;
border-collapse: collapse;
}
td {
border: 0px;
bgcolor: #ffffff;
p align: center;
border-spacing: 0px;
padding: 0px;
border-collapse: collapse;
}
#header {
background-image: url(SQRL_header.png);
width: 1000px;
height: 250px;
padding: 0px;
border-spacing: 0px;
border: 10px;
margin-left: 0px;
margin-bottom: 10px
}
#menu {
background-image: url(menu.png);
height: 60px;
padding: 0px;
border-spacing: 0px;
border: 0px;
border-collapse: collapse;
}
#body {
background-image: url(body.png);
height: 200px;
border-spacing: 0px;
padding: 0px;
border: 0px;
border-collapse: collapse;
}
#footer {
background-image: url(footer.png);
height: 60px;
border-spacing: 0px;
padding: 0px;
border: 0px;
border-collapse: collapse;
}
h3 {
font-size: 12px;
}
a:link {
color: silver;
}
a:hover {
color: #000000;
}
a:visited {
color: silver;
}
a:active {
color: #ffffff;
}
http://www.freewebs.com/theunlimited/ss.PNG
<html>
<head>
<title></title>
<SCRIPT LANGUAGE='JAVASCRIPT' TYPE='TEXT/JAVASCRIPT'>
<!--
var popupWindow=null;
function popup(mypage,myname,w,h,pos,infocus){
if (pos == 'random')
{LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;
}
else
{LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
settings='width='+ w + ',height='+ h + ',top=' + TopPosition + ',left=' + LeftPosition +
',scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';popupWindo w=window.open('',myname,settings);
if(infocus=='front'){popupWindow.focus();popupWindow.location=mypage;}
if(infocus=='back'){popupWindow.blur();popupWindow.location=mypage;popupWindow.blur();}
}
// -->
</script>
<LINK href="css.css" rel="stylesheet" type="text/css">
</head>
<body>
<table>
<!-- HEADER -->
<tr>
<td p align="left" valign="bottom">
<div id="header">
<!-- MENU -->
<a href="#">HOME</a>
<a href="#">WORLD</a>
<a href="#">US</a>
<a href="#">TECH</a>
<a href="#">ART&CUTLURE</a>
<a href="#">BUSINESS</a>
<a href="#">SPORTS</a>
<a href="#">MISCELANEOUS</a>
<a href="javascript:popup('windowpop.html','windowpop','578','550','center','front');">SUBMIT</a>
<a href="#">CONTACT</a>
<h2>
</div>
</td>
</tr>
<tr>
<td p align="center">
<div id="menu">
<p><br><p>
</div>
</td>
</tr>
<tr>
<td p align="center">
<div id="body">
body
</div>
</td>
</tr>
<!-- FOOTER -->
<tr>
<td p align="center">
<div id="footer">
<h3>© Copyright 2009-'10</h3>
</div>
</td>
</tr>
</body>
</html>
* {
cell-padding: 0px;
border: 0px;
border-spacing: 0px;
border-collapse: collapse;
}
h1 {
color: #cccccc;
font-size: 16px;
text-decoration: underline overline;
font-family: arial;
}
body {
background-color: #cccccc;
border: 0px;
cell-padding: 0px;
border-spacing: 0px;
cell-spacing: 0px;
border-collapse: collapse;
font-family: eurostyle, myraid, tahoma;
}
table {
border: 0px;
cell-padding: 0px;
border-spacing: 0px;
cell-spacing: 0px;
border-collapse: collapse;
}
tr {
border: 0px;
padding: 0px;
border-spacing: 0px;
cell-spacing: 0px;
border-collapse: collapse;
}
td {
border: 0px;
bgcolor: #ffffff;
p align: center;
border-spacing: 0px;
padding: 0px;
border-collapse: collapse;
}
#header {
background-image: url(SQRL_header.png);
width: 1000px;
height: 250px;
padding: 0px;
border-spacing: 0px;
border: 10px;
margin-left: 0px;
margin-bottom: 10px
}
#menu {
background-image: url(menu.png);
height: 60px;
padding: 0px;
border-spacing: 0px;
border: 0px;
border-collapse: collapse;
}
#body {
background-image: url(body.png);
height: 200px;
border-spacing: 0px;
padding: 0px;
border: 0px;
border-collapse: collapse;
}
#footer {
background-image: url(footer.png);
height: 60px;
border-spacing: 0px;
padding: 0px;
border: 0px;
border-collapse: collapse;
}
h3 {
font-size: 12px;
}
a:link {
color: silver;
}
a:hover {
color: #000000;
}
a:visited {
color: silver;
}
a:active {
color: #ffffff;
}