Jump to content
MakeWebGames

Header ?


ColdK

Recommended Posts

Hi I Done My Own Header With 2 Menus But Im Troubled With One Thing

You See The Way The <hr> is the only all the way to the right how do i do it all to the left aswell ?

ss.jpg

i want it so its all taken all the space in the middle so it hasnt got that unused space on the laft

Link to comment
Share on other sites

Re: Header ?

here is the main center content

 

print <<<OUT
<center>
[img=title.jpg]
<table width=100% border=0 class=table>
<tr>
<th wdith=50%>[url="donator.php>Donate</a></th>"]<a href=voting.php>Vote[/url]</th>
</tr>
</table>

<center><table width="100%" border="0" cellpadding="0" cellspacing="0"></center>
<tr>
<td width="25%"  valign="top">



OUT;
if($ir['fedjail'])
{
$q=$db->query("SELECT * FROM fedjail WHERE fed_userid=$userid");
$r=$db->fetch_row($q);
die("[b]<font color=red size=+1>You have been put in the {$set['game_name']} Federal Jail for {$r['fed_days']} day(s).

Reason: {$r['fed_reason']}</font>[/b]</body></html>");
}
if(file_exists('ipbans/'.$IP))
{
die("[b]<font color=red size=+1>Your IP has been banned from {$set['game_name']}, there is no way around this.</font>[/b]</body></html>");
}
}

 

can anyone try to get it to use all the space that is needed and center

Link to comment
Share on other sites

Re: Header ?

hmmm you could try this

 

print <<<OUT
<center>
[img=title.jpg]
<table width=100% border=0 class=table>
<tr>
<th wdith=50%>[url="donator.php>Donate</a></th>"]<a href=voting.php>Vote[/url]</th>
</tr>
</table>

<center><table width="100%" border="0" cellpadding="0" cellspacing="0"></center>
<tr>
<td width="25%"  valign="top">



OUT;
if($ir['fedjail'])
{
$q=$db->query("SELECT * FROM fedjail WHERE fed_userid=$userid");
$r=$db->fetch_row($q);
die("[b]<font color=red size=+1>You have been put in the {$set['game_name']} Federal Jail for {$r['fed_days']} day(s).

Reason: {$r['fed_reason']}</font>[/b]</body></html>");
}
if(file_exists('ipbans/'.$IP))
{
die("[b]<font color=red size=+1>Your IP has been banned from {$set['game_name']}, there is no way around this.</font>[/b]</body></html>");
}
}</centre>

 

If not try this

 

print <<<OUT
[img=title.jpg]
<table width=100% border=0 class=table><centre>
<tr>
<th wdith=50%>[url="donator.php>Donate</a></th>"]<a href=voting.php>Vote[/url]</th>
</tr></centre>
</table>

<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="25%"  valign="top">



OUT;
if($ir['fedjail'])
{
$q=$db->query("SELECT * FROM fedjail WHERE fed_userid=$userid");
$r=$db->fetch_row($q);
die("[b]<font color=red size=+1>You have been put in the {$set['game_name']} Federal Jail for {$r['fed_days']} day(s).

Reason: {$r['fed_reason']}</font>[/b]</body></html>");
}
if(file_exists('ipbans/'.$IP))
{
die("[b]<font color=red size=+1>Your IP has been banned from {$set['game_name']}, there is no way around this.</font>[/b]</body></html>");
}
}
Link to comment
Share on other sites

Re: Header ?

getting there the reason its centered everything is because the centre function wasnt used properley :D let me try again

 

print <<<OUT
[img=title.jpg]
<table width=100% border=0 class=table>
<tr>
<th wdith=50%>[url="donator.php>Donate</a></th>"]<a href=voting.php>Vote[/url]</th>
</tr>
</table>

<table width="100%" border="0" cellpadding="0" cellspacing="0"><centre>
<tr>
<td width="25%"  valign="top">



OUT;
if($ir['fedjail'])
{
$q=$db->query("SELECT * FROM fedjail WHERE fed_userid=$userid");
$r=$db->fetch_row($q);
die("[b]<font color=red size=+1>You have been put in the {$set['game_name']} Federal Jail for {$r['fed_days']} day(s).

Reason: {$r['fed_reason']}</font>[/b]</body></html>");
}
if(file_exists('ipbans/'.$IP))
{
die("[b]<font color=red size=+1>Your IP has been banned from {$set['game_name']}, there is no way around this.</table></font>[/b]</centre></body></html>");
}
}
Link to comment
Share on other sites

Re: Header ?

 

Yeah as tezza said, i think you reduce this bit.

 

<table width="100%" border="0" cellpadding="0" cellspacing="0"><centre>
<tr>
<td width="[b]25%[/b]"  valign="top">

 

Either that or increase the size of your right menu

where you find

<table width="100%" border="0" cellpadding="0" cellspacing="0">

go and add in align=centre after <table

<table align=center width="100%" border="0" cellpadding="0" cellspacing="0">

this should work as i have used it on games that i run which had the same problem

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...