Yamaha32088 Posted March 19, 2008 Share Posted March 19, 2008 Why is it that when i view the same webpage that is encoded with CSS, PHP, and HTML that they display differently as far as left margins. In IE it shows my set of links where I want them to be but in Mozilla it shows them to the left further. Quote Link to comment https://forums.phpfreaks.com/topic/96834-mozillaie-different-look/ Share on other sites More sharing options...
haku Posted March 19, 2008 Share Posted March 19, 2008 Code is just code. All browsers do is interpret that code and show it how they think it should be showed. No two browsers are exactly alike. Thats why they look differently. However, none of us will be able to answer your question without at least some code, and preferably a link. Quote Link to comment https://forums.phpfreaks.com/topic/96834-mozillaie-different-look/#findComment-495589 Share on other sites More sharing options...
Yamaha32088 Posted March 19, 2008 Author Share Posted March 19, 2008 Page code <?php require_once('../Connections/PCPAGEADS.php'); ?> <?php if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue; $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue); switch ($theType) { case "text": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "long": case "int": $theValue = ($theValue != "") ? intval($theValue) : "NULL"; break; case "double": $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL"; break; case "date": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "defined": $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue; break; } return $theValue; } } mysql_select_db($database_PCPAGEADS, $PCPAGEADS); $query_Recordset1 = "SELECT * FROM Categorys"; $Recordset1 = mysql_query($query_Recordset1, $PCPAGEADS) or die(mysql_error()); $row_Recordset1 = mysql_fetch_assoc($Recordset1); $totalRows_Recordset1 = mysql_num_rows($Recordset1); ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled 1</title> <link rel="stylesheet" type="text/css" href="new.css" /> </head> <body> <div id="Content"> <div style="position:relative; z-index:1;"> <div align="center"><img src="images/1333.jpg" width="780" /></div> </div> <div style="position:relative; z-index:1; left: 0px; top: 2px;"> <div align="center"><img src="images/10.jpg" /><img alt="" src="images/11.jpg" width="180" height="25" align="top" /></div> </div> <div style="position:relative; z-index:2; left: 0px; top: 1px;"> <div align="center"><img src="images/13.jpg" /><img alt="" src="images/14.jpg" width="408" height="53" /><img alt="" src="images/15.jpg" width="180" height="36" /></div> </div> <div style="position:relative; z-index:3; left: 300px; top: -61px;"> <div align="center"><img src="images/12.jpg" /></div> </div> </div> <div style="position:relative; z-index:4; left: 550px; top: -25px;"> <?php do { ?> <li><div align="left"><a href="<?php echo $row_Recordset1['URL']; ?>"><?php echo $row_Recordset1['type']; ?></a></div> </li> <?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?> </div> </body> </html> <?php mysql_free_result($Recordset1); ?> CSS Code body { margin:50px 0px; padding:0px; text-align:center; } #Content { width:780px; margin:0px auto; text-align:left; padding:15px; background-color:#FFFFFF; } #test { z-index:50; top:-12px; } Quote Link to comment https://forums.phpfreaks.com/topic/96834-mozillaie-different-look/#findComment-496275 Share on other sites More sharing options...
haku Posted March 19, 2008 Share Posted March 19, 2008 Need a link. Google "free hosting". Quote Link to comment https://forums.phpfreaks.com/topic/96834-mozillaie-different-look/#findComment-496422 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.