RinseWind Posted September 30, 2007 Share Posted September 30, 2007 Hi Guys just a quick question, have created a header image for our site but cant seem to get this central, have removed the images from header.php and replaced them with 1 image but cant seem to get this image central. can any1 help please? Our site is located @ www.thelorebringers.co.uk <?php echo"<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">" . "<!-- fwtable fwsrc=\"header.png\" fwbase=\"header.gif\" fwstyle=\"Generic\" fwdocid = \"536263046\" fwnested=\"0\" -->" . " <tr>" . "" . " <td rowspan=\"2\"><img name=\"header.jpg\" src=\"themes/GameTech/images/header.jpg\" width=\"761\" height=\"160\" align=\"center\" border=\"0\" alt=\"\"></td>" . " </tr>" . "</table>" . "<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" align=\"center\"><tr valign=\"top\">" . "<td width=\"165\" valign=\"top\">" ?> YThnx in advance RinseWind Link to comment https://forums.phpfreaks.com/topic/71239-headerphp/ Share on other sites More sharing options...
xylex Posted September 30, 2007 Share Posted September 30, 2007 " <td rowspan=\"2\" align="center"><img name=\"header.jpg\" src=\"themes/GameTech/images/header.jpg\" width=\"761\" height=\"160\" align=\"center\" border=\"0\" alt=\"\"></td>" or " <td rowspan=\"2\" style="text-align: center"><img name=\"header.jpg\" src=\"themes/GameTech/images/header.jpg\" width=\"761\" height=\"160\" align=\"center\" border=\"0\" alt=\"\"></td>" Link to comment https://forums.phpfreaks.com/topic/71239-headerphp/#findComment-358328 Share on other sites More sharing options...
RinseWind Posted September 30, 2007 Author Share Posted September 30, 2007 That doesnt work, if i add either of those the homepage goes completely blank..But thnx anyway..Any other ideas? Link to comment https://forums.phpfreaks.com/topic/71239-headerphp/#findComment-358333 Share on other sites More sharing options...
RinseWind Posted September 30, 2007 Author Share Posted September 30, 2007 Ok have now managed to sort that problem out, but when i change my screen res lower, i then get a blank space in header..and the same when i increase the the res the header then goes outside of the table? How do i fix the header size so all people can view it in any res? Link to comment https://forums.phpfreaks.com/topic/71239-headerphp/#findComment-358353 Share on other sites More sharing options...
RinseWind Posted September 30, 2007 Author Share Posted September 30, 2007 Here is wot the header.php currently looks like.. <?php echo"<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">" . "<!-- fwtable fwsrc=\"header.jpg\" fwbase=\"header.jpg\" fwstyle=\"Generic\" fwdocid = \"536263046\" fwnested=\"0\" -->" . " <tr>" . "" . " <td rowspan=\"2\"><img name=\"header.jpg\" src=\"themes/GameTech/images/header.jpg\" width=\"1260\" height=\"150\" border=\"1\" alt=\"\"></td>" . " </tr>" . "</table>" . "<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" align=\"center\"><tr valign=\"top\">" . "<td width=\"1260\" valign=\"top\">" ?> Link to comment https://forums.phpfreaks.com/topic/71239-headerphp/#findComment-358452 Share on other sites More sharing options...
BlueSkyIS Posted September 30, 2007 Share Posted September 30, 2007 you need to look into CSS, how to display HTML at different resolutions. PHP is no magic bullet for display problems. learn how to make it look the way you want it to look, then (if necessary, probably not) use PHP to make it look that way. Link to comment https://forums.phpfreaks.com/topic/71239-headerphp/#findComment-358459 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.