http://siephed.org/47/index.php. There’s a index.html and an index.php file uploaded in that directory. If you look at both, you’ll notice that the header for index.html is where it’s supposed to be, while in the index.php file, there’s a gap that’s filled by the background between the header and the top of the browser window. I have no clue what’s wrong, the only difference in code being that in index.php, the top and bottom halves are spliced so I use <?php include(‘header.txt’); ?> to include them into index.php.
For starters, make sure the content on both is identical. It can be difficult troubleshooting when the content is different.
Remove the includes on the .php version, for testing purposes. If it’s working fine with the includes removed, you know you have a problem with those, and not the style sheet. As far as I can tell, it’s the only thing that might be causing the problem.
Actually, I just did a quick test. It MUST be something with the include and/or the content. I just copied the content from the HTML version into the PHP version and the header aligned properly. Check the differences between the content and you’ll find your answer.
I know it is the problem between the includes and main.. i’ve got an html copy uploaded along with a .php file included. Both their content are the same, except the php one is simply spliced into parts… but i still get the gap in the php version and I really don’t know why.
Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic.
*May or may not contain any actual "CSS" or "Tricks".