thichtomo Posted June 28, 2014 Share Posted June 28, 2014 (edited) 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 June 28, 2014 by thichtomo Link to comment Share on other sites More sharing options...
scout1idf Posted June 28, 2014 Share Posted June 28, 2014 Hi, I couldn't replicate your issue. They looked the same looking at either file on my system. I would suggest a change to your code though, add a doctype to your code... Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now