sheep01 Posted April 12, 2008 Share Posted April 12, 2008 I have the actual header file called header.php But it loads the header and everything loads but when it does there is a rather large gap between two images. Any ideas whats causing it? File can be found at www.sheep01.com/lazydays/include.php <style type="text/css"> #header { position: relative; height: 193px; } /* Holds the site title and subtitle */ #header #title { position: absolute; z-index: 3; top: 10px; left: 130px; padding: 5px; text-align: right; } #header h1 { margin: 0; padding: 0; font: 700 4em "trebuchet ms", serif; letter-spacing: -3px; text-transform: lowercase; color: #000000; } #header h2 { position: absolute; top: 10px; right: 5px; margin: 0; padding: 0; font: 700 1em "trebuchet ms", serif; text-transform: lowercase; color: #00F0EC; } /* Sets where the header images will go */ #header img.left { position: absolute; z-index: 1; top: 0; left: 0; } #header img.right { position: absolute; z-index: 0; top: 0; right: 0; } #header img.balloons { position: absolute; z-index: 2; top: 70px; right: 400px; } </style> <div id="header"> <div id="title"> <h1>Sheep01.com</h1> <h2></h2> </div> <img src="images/bg/balloons.gif" alt="balloons" class="balloons" /> <img src="images/bg/header_left.jpg" alt="left slice" class="left" /> <img src="images/bg/header_right.jpg" alt="right slice" class="right" /> </div> And then the very basic php include: <?php include("header.php"); ?> Link to comment https://forums.phpfreaks.com/topic/100743-solved-php-include-header/ Share on other sites More sharing options...
doni49 Posted April 12, 2008 Share Posted April 12, 2008 File can be found at www.sheep01.com/lazydays/include.php File not found. Link to comment https://forums.phpfreaks.com/topic/100743-solved-php-include-header/#findComment-515300 Share on other sites More sharing options...
sheep01 Posted April 12, 2008 Author Share Posted April 12, 2008 Fixed. Link to comment https://forums.phpfreaks.com/topic/100743-solved-php-include-header/#findComment-515302 Share on other sites More sharing options...
doni49 Posted April 12, 2008 Share Posted April 12, 2008 There's an error in your CSS code. It's not a PHP problem. Link to comment https://forums.phpfreaks.com/topic/100743-solved-php-include-header/#findComment-515304 Share on other sites More sharing options...
doni49 Posted April 12, 2008 Share Posted April 12, 2008 I just went back and took another look--if you are wanting to have this image UNDER the text, could make it the background image and then put the text on top of that. Link to comment https://forums.phpfreaks.com/topic/100743-solved-php-include-header/#findComment-515306 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.