Jump to content

Problem with function require() and display in firefox and chrome


thichtomo
 Share

Recommended Posts

The code is as following:

 

file:index.php

<?php 	include("fix.php");?>

file: fix.php

<html>	<head>		<title></title>		<link rel="stylesheet" type="text/css" href="styles/styles.css" />	</head>	<body style="margin:0px;">		<h1 style="background-color:red;margin:0px;">Problem</h1>	</body></html>

When I open file fix.php in firefox and chrome are ok (there is no margin between tag h1 and top boundary of browsers).

However, when I open file index.php, in firefox is OK (no margin), but in Chrome, there a margin between them.

Please, explain to me the reason. Is it because of the function require () ???

Edited by thichtomo
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...