Strange behavior in IE7 when calling php include
-
Hello all,
I’m new to WordPress and am authoring my first theme. I’ve been pulling my hair out trying to line-up the top margins for a typical 3 column layout with header and footer. In Firefox, everything is fine but IE7 is adding some extra padding or adjusting the margins for the sidebars flanking the center content. I tried everything and finally determined that this is happening whenever I include a file using the php include directive (e.g., <?php get_sidebar(); ?> or <?php include (TEMPLATEPATH . “/the_other_sidebar.php”); ?>).
If I take the exact code from the include files and paste it inplace of the include directive, everything displays OK. I even compared the page source from the one rendered with the inline source versus the one using the include directives and they were identical!
Is there a rational explanation for what’s going on here?
Any help will be greatly appreciated. I did some searching on the subject but could not find any information but I have to believe others have run into this problem.
Thanks,
-Roland.
- The topic ‘Strange behavior in IE7 when calling php include’ is closed to new replies.