Dominee Posted June 28, 2011 Share Posted June 28, 2011 He, I made a header for my website with photoshop (when I saved this as HTML+IMAGES it has alot of images in one map ofcourse) On the right of my header I want a section where people can log in or register. The problem is, i need a table over this image so I can put my toplink in here. If there is a other solution to do this please tell Here is a screenshot of my header. Here is my code. <?php session_start(); // Must start session first thing $toplinks = ""; if (isset($_SESSION['id'])) { // Put stored session variables into local php variable $userid = $_SESSION['id']; $username = $_SESSION['username']; $toplinks = '<a href="member_profile.php?id=' . $userid . '">Welcome ' . $username . '</a> • <a href="cart.php">Cart</a> • <a href="logout.php">Log Out</a>'; } else { $toplinks = '<a href="join_form.php">Register</a> • <a href="login.php">Login</a>'; } ?> <html> <head> <title>Project 1</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <table align="center" id="Table_01" width="1201" height="150" border="0" cellpadding="0" cellspacing="0"> <tr> <td colspan="8"> <img src="images/header_01.png" width="1200" height="96" alt=""></td> <td> <img src="images/spacer.gif" width="1" height="96" alt=""></td> </tr> <tr> <td rowspan="3"> <img src="images/header_02.png" width="189" height="54" alt=""></td> <td> <a href="Index.php"> <img src="images/Project-1_03.png" width="66" height="28" border="0" alt=""></a></td> <td> <a href="Producten.php"> <img src="images/Project-1_04.png" width="113" height="28" border="0" alt=""></a></td> <td rowspan="3"> <img src="images/header_05.png" width="15" height="54" alt=""></td> <td rowspan="2"> <a href="Over_ons.php"> <img src="images/Project-1_06.png" width="89" height="30" border="0" alt=""></a></td> <td rowspan="3"> <img src="images/header_07.png" width="8" height="54" alt=""></td> <td> <a href="Contact.php"> <img src="images/Project-1_07.png" width="93" height="28" border="0" alt=""></a></td> <td rowspan="3"> <img src="images/header_09.png" width="627" height="54" alt=""></td> <td> <img src="images/spacer.gif" width="1" height="28" alt=""></td> </tr> <tr> <td colspan="2" rowspan="2"> <img src="images/header_10.png" width="179" height="26" alt=""></td> <td rowspan="2"> <img src="images/header_11.png" width="93" height="26" alt=""></td> <td> <img src="images/spacer.gif" width="1" height="2" alt=""></td> </tr> <tr> <td> <img src="images/header_12.png" width="89" height="24" alt=""></td> <td> <img src="images/spacer.gif" width="1" height="24" alt=""></td> </tr> </table> <table align="center" width="1201" border="0"> <tr> <td> </td> </tr> </table> </body> </html> Quote Link to comment https://forums.phpfreaks.com/topic/240646-i-got-a-problem-with-my-header/ Share on other sites More sharing options...
AbraCadaver Posted June 28, 2011 Share Posted June 28, 2011 Assuming that those images are in a table, you need to delete that one image and make it the background for that table cell. Then you can add your login form. Quote Link to comment https://forums.phpfreaks.com/topic/240646-i-got-a-problem-with-my-header/#findComment-1235989 Share on other sites More sharing options...
Dominee Posted June 28, 2011 Author Share Posted June 28, 2011 When I delete the image in the table I delete the color of this section. Quote Link to comment https://forums.phpfreaks.com/topic/240646-i-got-a-problem-with-my-header/#findComment-1236009 Share on other sites More sharing options...
AbraCadaver Posted June 28, 2011 Share Posted June 28, 2011 When I delete the image in the table I delete the color of this section. Use that image as the background-image for that table cell. Quote Link to comment https://forums.phpfreaks.com/topic/240646-i-got-a-problem-with-my-header/#findComment-1236018 Share on other sites More sharing options...
EdwinPaul Posted June 28, 2011 Share Posted June 28, 2011 ... or use <div id=left> <!-- or whatever name(s) --> and put their position in your css-file Quote Link to comment https://forums.phpfreaks.com/topic/240646-i-got-a-problem-with-my-header/#findComment-1236019 Share on other sites More sharing options...
Dominee Posted June 28, 2011 Author Share Posted June 28, 2011 Problem solved thanks Quote Link to comment https://forums.phpfreaks.com/topic/240646-i-got-a-problem-with-my-header/#findComment-1236027 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.