Jump to content

Mozilla/IE different look


Yamaha32088

Recommended Posts

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.

Link to comment
Share on other sites

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;
}

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.