Jump to content
xisto Community
Sign in to follow this  
matak

Html/php Vs Ie: Strange Empty Line In Ie Strange empty line when adding code

Recommended Posts

Here's my script

INDEX

<?php$house = "house.php";$dog = "dog.php";echo ('<div id="navigacija">	<a href="index.php">Index</a><br><a href="index.php?index=house">House</a><br><a href="index.php?index=dog">Dog</a><br></div>');?>

hOME (ANALOG IS DOG)

<html><style type="text/css">body {	background-color: #666;	color: white;}#house {	background-color: white;	width: 100px;	height: 100px;}#header {	color: black;}</style><div id="house">	<div id="header">Here Be Header!</div></div></html>

Here is how it Looks..
firefox is ok, but IE shows strange empty line.. WHY?? OOOO WHYYYYYY :D:P:P
Edited by matak (see edit history)

Share this post


Link to post
Share on other sites

Start by adding a Document Type Declaraton which does not place IE into Quirks Mode.And confirm the Character Set for the page is a standard one.

Share this post


Link to post
Share on other sites

Start by adding a Document Type Declaraton which does not place IE into Quirks Mode.And confirm the Character Set for the page is a standard one.

tried that, and it doesnt work..

i know where is the problem

in this piece i changed a bit...

				case 'house':			echo ("<div>");			include("$house");			echo ("</div>");		break;

When i write just Text in house.php it displays it right below..
But when i just include house.php like this and write that <div> in file house.php it shows an empty line...

Strange.. Oh, well...

Problem is not that big, but it's that stupid. I even think that this is done on purpose, but well i'm kinda paranoid person :P

Share this post


Link to post
Share on other sites

couldn't this be a browser padding/margin issue? in which case you could try some CSS to set the browser padding/margins to zero. The code is fairly easy to find on google and it may or may not help, i tried it once because i had a similar problem with an image having an ugly line above it and i wanted it to be flush with the browser edge, the CSS didn't work but its worth a try :P

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | 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.