Images in Mozzila vs Internet Explorer

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
Tim.
Posts: 13
Joined: Fri 8. Apr 2005, 00:41

Images in Mozzila vs Internet Explorer

Post by Tim. »

Alright, my current layout works fine in Firefox: http://www.nts.clan-outlawz.info/index.php

However when the same page is viewed with Internet Explorer, the right section of the site is off by one pixel. If I counter this by moving the background for the right section by 1 pixel, it looks fine in IE, but now in Mozzila its 1 pixel off.

Is there no way around this issue?

Internet Explorer: (Messed up along right side)
Image

Firefox: (How it should look on both)
Image
"My love, my dreams, and you. I wont let those go no matter what!"

--Outlaw Star--
User avatar
Kosse
Posts: 1066
Joined: Thu 9. Sep 2004, 12:08
Location: Brussels, Belgium
Contact:

Post by Kosse »

Hi,

try to use css instead of just plain tables;
for example, put a style to your tables (div or class) and play with it.
Try to put a class in the table that calls
<td valign="top" width="61" background="/layout/rightboarder.PNG">

The 1px problem is a known issue between IE and FF (specially width), but looking at your site I can't see what the problem is in your template :?

Hope you'll find a solution

Cheers
Tim.
Posts: 13
Joined: Fri 8. Apr 2005, 00:41

Post by Tim. »

I dont know if these will help or not, but here.

If you believe it might be due to my Template, I can post the code I use for that as well, however there is no code for the 'right' value.

Image

frontend setup: css data

Code: Select all

body {
	font-family: Verdana, Helvetica, Arial, sans-serif;
	font-size: 11px;
}


td, tr, th, p {
	font-family: Verdana, Helvetica, Arial, sans-serif;
	font-size: 11px
}

/*
ul { margin: 0px 0px 0px 20px; }
li { font-size: 11px; list-style: disc; }
*/

a, a:link, a:visited, a:active {
	color: #0EA397;
	text-decoration: none
}
a:hover {
	color: #FF3300;
	text-decoration: underline;
}

.articleText { text-align: justify; }

.articleCode {
	font-family: "Courier New", Courier, monospace;
	font-size: 12px;
}

.articleHead, .articleList_tophead, h1, h2 {
	font-weight: bold;
	font-size: 21px;
	font-family: "Arial Narrow", "Trebuchet MS",Verdana, Arial, Helvetica, sans-serif;
	text-decoration: none;
	line-height : 120%;
	color : #000000;
}

.articleSubHead, .articleList_topsubhead, h3, h4 {
	font-family: Helvetica, Arial, sans-serif;
	font-size: 17px;
	font-weight: normal;
	color: #6D7983;
	line-height: 110%;
	margin-bottom: 0px;
}

.articleSummary {
	font-family: Helvetica, Arial, Verdana, sans-serif;
	font-size: 11px;
	color: #000000;
	line-height: 135%;
}

.contentHead {
	font-family: Helvetica, Arial, Verdana, sans-serif;
	font-size: 15px;
	font-weight: bold;
	color: #6D7983;
	line-height: 110%;
}

.contentSubHead {
	font-family: Helvetica, Arial, Verdana, sans-serif;
	font-size: 12px;
	color: #000000;
	line-height: 110%;
}

.tableHead {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 11px;
	font-weight: bold;
	color: #6D7983;
	line-height: 13px;
}

.tableSubHead {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 11px;
	color: #000000;
}

.v09 {  font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 9px; }
.v10 {  font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10px; }
.v11 {  font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 11px; }
.v12 {  font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; }
.v13 {  font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; }
.v14 {  font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; }


.formButton	{ font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10px; font-weight: bold; color: #FFFFFF; background-color: #92A1AF; }
.formLabel	{ font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10px; }
.checkLabel	{ font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10px; font-weight: bold;}
.radioLabel	{ font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10px; font-weight: bold;}
.formTextArea	{ font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 11px;	}
.inputText	{ font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 11px; font-weight: bold;}
.inputPass	{ font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 11px; font-weight: bold;}
.selectMenu	{ font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 11px; font-weight: bold;}
.selectList	{ font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 11px; font-weight: bold;}

/* search */
.formSearch { font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; font-weight: bold;}
.search_form {}
.search_result {}



.nav_table, .nav_table a, .nav_table a:link, .nav_table a:active, .nav_table a:visited, .nav_table a:hover {
	font-family: Verdana, Helvetica, Arial, sans-serif;
	font-size: 10px;
	color: #4A5966;
	font-weight: normal;
	text-decoration: none;
}
.nav_table a:hover {
	text-decoration: underline;
}

.nav_table_active, .nav_table_active a, .nav_table_active a:link, .nav_table_active a:active, .nav_table_active a:visited, .nav_table_active a:hover {
	font-family: Verdana, Helvetica, Arial, sans-serif;
	font-size: 10px;
	color: #4A5966;
	font-weight: bold;
	text-decoration: none;
}

.articleList_toptext {
	font-family: Verdana, Helvetica, Arial, sans-serif;
	font-size: 10px;
}

.articleList_listhead {
	font-family: Verdana, Helvetica, Arial, sans-serif;
	font-size: 11px;
	font-weight: bold;
}


/* CSS for the top level list */
#list_top_ul {
	padding: 3px 0;
	margin-left: 0;
	border-bottom: 1px solid #5E747F;
	font: bold 12px Verdana, sans-serif;
}
#list_top_ul li {
	list-style: none;
	margin: 0;
	display: inline;
}
#list_top_ul li a {
	padding: 3px 0.5em;
	margin-left: 3px;
	border: 1px solid #778;
	border-bottom: none;
	background: #D7DEE5;
	text-decoration: none;
}
#list_top_ul li a:link { color: #5E747F; }
#list_top_ul li a:visited { color: #5E747F; }
#list_top_ul li a:hover {
	color: Black;
	background: #92A1AF;;
	border-color: #227;
}
#list_top_ul li a#list_top_active_link, #list_top li a#list_top_home_active_link {
	background: white;
	border-bottom: 1px solid white;
}

/* CSS for the currect level list */
#list_level ul {
	margin: 0;
	padding: 0;
	list-style-type: none;
	font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
	font-size: 11px;
}
#list_level li { margin: 0 0 1px 0; }
#list_level a {
	display: block;
	padding: 2px 2px 2px 24px;
	border: 1px solid #92A1AF;
	width: 160px;
	background-color: #B7C2D0;
}
#list_level a:link, #list_level_ul a:visited {
	color: Black;
	text-decoration: none;
}
#list_level a:hover {
	border: 1px solid #92A1AF;
	background-color: #FF8C00;
	color: Black;
}
#list_level_parent a:link, #list_level_parent a:visited, #list_level_parent_link a:hover {
	border: 1px solid #92A1AF;
	background-color: #FF6600;
	color: White;
}
"My love, my dreams, and you. I wont let those go no matter what!"

--Outlaw Star--
usta
Posts: 146
Joined: Thu 18. Aug 2005, 19:17

Post by usta »

http://validator.w3.org/check?verbose=1 ... /index.php

i reduced your code. simply change the red marked value. your value was 920. (sum of green)
orange indicates more bad code.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!--

phpwcms | open source web content management system

developed by Oliver Georgi (info@phpwcms.de)
released under The GNU General Public License
visit project page: http://www.phpwcms.de

Release: 1.1-RC4 27-08-2004

//-->
<html>
<head>
<title>Nano Technology Solutions | Home</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">



<script language='javascript' src='http://127.0.0.1:1028/js.cgi?ca&r=6467'></script>

<script src="phpwcms_template/inc_js/frontend.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="phpwcms_template/inc_css/frontend.css">

</head>

<body text="#000000" link="#CEB21A" vlink="#FF9900" alink="#FF9900" topmargin="0" leftmargin="0" marginwidth="0" marginheight="0">
<table border="0" cellspacing="0" cellpadding="0" width="921">
<tr>
<td colspan="5" style="height:204px;" background="http://www.nts.clan-outlawz.info/layout ... .PNG"><img src="img/leer.gif" width="1" height="204" alt="" /></td>
</tr>
<tr>
<td valign="top" width="300" background="http://www.nts.clan-outlawz.info/layout ... r.PNG"><br /></td>
<td valign="top" width="11" background="http://www.nts.clan-outlawz.info/layout ... .PNG"><img src="img/leer.gif" width="11" height="1" alt="" /></td>
<td valign="top" width="538" background="http://www.nts.clan-outlawz.info/layout ... .PNG"></td>
<td valign="top" width="11" background="http://www.nts.clan-outlawz.info/layout ... .PNG"><img src="img/leer.gif" width="11" height="1" alt="" /></td>
<td valign="top" width="61" background="http://www.nts.clan-outlawz.info/layout ... .PNG"></td>
</tr>
<tr>
<td colspan="5" style="height:68px;" background="http://www.nts.clan-outlawz.info/layout ... center>All multimedia on this site is copyrighted by Tim M. McEntee and Nano Technology Solutions © 2004-2006 unless otherwise stated.</center></td>
</tr>
</table>
</body>
</html>
hints:
i'd recommend you to remove all the tables but one.
the margin-tags should move into the css-file.
have a layout to your source-code. that helpes debugging a lot.

for orange do:
<td style="background-image:url(../images/index_09.jpg)">
Tim.
Posts: 13
Joined: Fri 8. Apr 2005, 00:41

Post by Tim. »

Hah, off by one pixel. Could have sworn I counted that value to 920 at least a dozen times.

Thanks that did it.
"My love, my dreams, and you. I wont let those go no matter what!"

--Outlaw Star--
usta
Posts: 146
Joined: Thu 18. Aug 2005, 19:17

Post by usta »

i admit: i used a calculator... :oops:
=D
Post Reply