Problems with header code

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Problems with header code
bxfl
CZ Super Newbie
bxfl has been a member for over 20 year's 20 Year Member
Gender: Female
Website:
Status: Offline
Joined: Mar 22, 2004
0.01 posts per day
Posts: 60
Points: 2,594
AIM Address   
I've been working with the header in the "Deep Blue" layout, and I can't get the image/logo to be justified left.. Take a gander and let me know what I'm doing wrong..?


function themeheader() {
   

    echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"840\" align=\"center\">\n"
   ."<tr><td width=\"100%\">\n"
   ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"840\">\n"
   ."<tr><td width=\"100%\">\n"
   ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"840\">\n"
   ."<tr><td width=\"100%\" height=\"88\" bgcolor=\"#FFFFFF\">\n"
   ."<table border=0 width=100% cellpadding=0 cellspacing=0><tr><td valign=\"left\" bgcolor=\"#08305A\"><a href=\"index.php\"><img border=\"0\" src=\"themes/DeepBlue/images/cobaltss.jpg\" alt=\"Welcome to $sitename!\" hspace=\"20\"></a></td></tr>\n"



Back to top Reply with quote
#2   re: Problems with header code
bxfl
CZ Super Newbie
bxfl has been a member for over 20 year's 20 Year Member
Gender: Female
Website:
Status: Offline
Joined: Mar 22, 2004
0.01 posts per day
Posts: 60
Points: 2,594
AIM Address   
No luck. It didn't do anyting.



Back to top Reply with quote
#3   re: Problems with header code
bxfl
CZ Super Newbie
bxfl has been a member for over 20 year's 20 Year Member
Gender: Female
Website:
Status: Offline
Joined: Mar 22, 2004
0.01 posts per day
Posts: 60
Points: 2,594
AIM Address   
I edited the header from it's usual logo by removing the two logos and instead just having one banner.

Original:

<table border=0 width=100% cellpadding=0 cellspacing=0><tr><td align=\"left\"><a href=\"index.php\"><img border=\"0\" src=\"themes/DeepBlue/images/logo.gif\" alt=\"Welcome to $sitename!\" hspace=\"20\"></a></td><td align=\"right\"><img border=\"0\" src=\"themes/DeepBlue/images/logo-graphic.gif\"></td></tr></table></td></tr>\n"
            ."<tr><td width=\"100%\" bgcolor=\"#000000\" height=\"19\" valign=\"bottom\">\n"


As compared to what I did:


<table border=0 width=100% cellpadding=0 cellspacing=0><tr><td align=\"left\" bgcolor=\"#08305A\"><a href=\"index.php\"><img border=\"0\" src=\"themes/DeepBlue/images/cobaltss.jpg\" alt=\"Welcome to $sitename!\" hspace=\"20\"></a></td></tr>\n"
   ."<tr><td width=\"100%\" bgcolor=\"#000000\" height=\"19\" valign=\"bottom\">\n"



Back to top Reply with quote
#4   re: Problems with header code
Kelly_Hero
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
usa.gif southcarolina.gif
Occupation: Web Developer
Age: 59
Gender: Female
Website:
Status: Offline
Joined: Aug 20, 2003
0.49 posts per day
Posts: 3765
Points: 351,412
   
You don't need align="left" in your <td> tag. It's the default.

Your image tag has hspace="20" in it. That means it's putting 20 pixels of blank space on either side of your logo. Take that out and see if it fixes it. If it's still not aligned to the left, add width="xx" to your <td> tag.

xx= the width of your logo.

Kelly



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum