I have a problem which has been occurring on several of the sites I've built lately. It seems when I include the the footer file on each page a line break gets added to the html which isn't good for designs where a color is supposed to be flush with the footer.
Here's an example:
http://216.151.1.137/~shopauto/
here's what the require code looks like:
require "inc/footer.php";
Very basic (and I have tried using parentheses instead).
The footer.php file is very basic too:
<?php
print "
</div>
<div id='footer'>
© 2009 All Rights Reserved.
Website Design by <a href='http://www.dwstudios.net/' style='color:#666666;'>Darkwater Studios</a>
</div>
</div>
</body>
</html>";
?>
It's not a CSS issue (though I know it seems like it is). To illustrate that point I tried to leave the first part of a closing div tag in the file which is including the footer (index.php) and then finished the tag in the footer:
end of index.php:
...print "
</div";
?>
beginning of footer.php:
<?php
print ">
</div>...
And this is how it looks in the source code . . . actually, I can't even paste it, I'll have to use a screenshot:
http://216.151.1.137/~shopauto/images/Picture%201.png
Any thoughts. My sense is it's something with the DOCTYPE or encoding type or something like that which I don't understand.