...

View Full Version : How to move the bar up.



metalspeed
02-21-2011, 05:16 PM
Hi i want help with moving this bar up like you see in the picture the code of the bar is:

This is the php of the index:
<head>

<TITLE><? echo $title;?></TITLE>
<meta http-equiv="Pragma" content="no-cache">
<meta content="index, follow" name="robots">
<meta content="index,follow" name="Robots">
<link href="style/<?php echo $style; ?>/css/style.css" type="text/css" rel="StyleSheet">
<link rel="shortcut icon" href="favicon.png" type="image/ico">
<link rel="alternate" type="application/rss+xml" title="RSS" href="rss.php">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="keywords" content="<? echo $mainkeys ?>">
<meta name="description" content="<? echo $mainkeys ?>">
</head>

<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">

<table border="0" width="100%" id="table4" cellspacing="0" cellpadding="0">
<tr>
<td width="4">&nbsp;</td>
<td>
<p align="center">
<img border="0" src="style/images/header.JPG" width="1000" height="127"></td>
<td width="4">&nbsp;</td>
</tr>
</table>



<table style="border-collapse: collapse;" border="0" width="100%">
<tbody>
</table>
<p align="center"> <!--- END Header --->
<br>



<!--- Begin Icons --->
_________________________HERE IS THE BAR CODE__________________________________
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="25">
<img border="0" src="style/images/men_l.jpg" width="25" height="50"></td>
<td align="center" style="background:url(style/<?php echo $style; ?>/images/bar_02.gif) repeat-x;" width="95%">
<?php echo $cats; ?>
</td>
<td>
<img border="0" src="style/images/men_r.jpg" width="25" height="50"></td>
</tr>
</table>
_______________________________________________________________
</td>
</tr>
</tbody></table>

</div>
<!-- address bar -->
<br>

<table border="0" align="center" cellspacing="0" width="100%">
<tr>
<td width="140" style="vertical-align:middle"><img src="style/<?php echo $style; ?>/images/most.jpg" style="padding-top:3px;"></td>
<td dir="ltr" style="vertical-align:middle" width="88%">
<marquee onmouseover='this.stop()' onmouseout='this.start()'>
<?php echo $most; ?>
</marquee></td>
</tr>
</table>
<br>
<center>
<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="80%" align="center">
<thead>
<tr>
<td class="tcat" colspan="4" align="center" height="29">
<a style="float:left" onclick="return toggle_collapse('motaz_system')"></a> .:: اعلانات الموقع ::. </td>
<tbody id="collapseobj_motaz_system" style="">

</tr>

</thead>

<tr>
<td align="center" width="25%" class="alt2">
<?php echo $ban1; ?>
</td>
<td align="center" width="25%" class="alt1">
<?php echo $ban2; ?>
</td>
<td align="center" width="25%" class="alt2">
<?php echo $ban3; ?>
</td>
<td align="center" width="25%" class="alt1">
<?php echo $ban4; ?>
</td>

</tr>




<tr>
<td class="tcat" colspan="4" align="center" height="29">
<table border="0" width="100%" align="center">
<td width="25%" class="alt2">
<p align="center">
<?php echo $topban; ?>
</p></td>

</table>

</td>
</tr>
</table>
</center>

<br>
<table style="border-collapse: collapse;" border="0" cellpadding="0" cellspacing="0" width="100%">

<tbody>
<tr>

<td width="100%" valign="top">

<table align="center" border="0" cellpadding="0" cellspacing="0">
<tbody>
<?
if($_GET['action'] == "viewCat"){
echo "";
}elseif($_GET['action'] == "topic"){
echo "";
}elseif($_GET['action'] == "404"){
echo "";
}elseif($_GET['action'] == "403"){
echo "";
}elseif($_GET['action'] == "search"){
echo "";
}elseif($_GET['action'] == "random"){
echo "";
}else{
?>
<tr>
<td align="center">

<img src="style/<?php echo $style; ?>/images/sticky.jpg"><br><br>
</td>
</tr>
<tr>
<td dir="rtl" align="center">
<table border="0" cellspacing="0">
<tbody><tr>

<?php echo $sticky; ?>

</tr>
</tbody></table>
</td>
</tr>
<? } ?>
<tr>
<td align="center">

<img src="style/<?php echo $style; ?>/images/main.jpg"><br><br>
</td>
</tr>
<tr>
<td dir="rtl" align="<?php echo $align; ?>">
<table border="0" cellspacing="0">
<tbody><tr>

<?php echo $main; ?>

</tr>
</tbody></table>
<table border="0" cellpadding="2" cellspacing="0" align="center">
<tbody><tr>


<?
if($_GET['action'] == "viewCat"){
echo "$catpages<br>";
}elseif($_GET['action'] == "random"){
echo "<br>";
}else{
echo "$pages<br>";
}

?>


</tr>
</tbody></table>
</td>
</tr>
</tbody>
</table>
<br>
</td>


</tr>
</tbody>
</table>
<p class="copyright" align="center">
By : <a title="alon_de_loco By : alon_de_loco" href="http://aflamfox.com">alon_de_loco</a>
</p>
<table border=0 align=center cellspacing=0 width=96% height=60 dir=ltr id="table5">
<tr>
<td style="background:url('style/images/f_l.jpg') no-repeat left; " width=66>&nbsp;</td>
<td style="background:url('style/images/f_rep.jpg') repeat-x; ">&nbsp;</td>
<td align=center style="background:url('style/images/f_h.jpg') no-repeat; " width=526>
&nbsp;</td>
<td style="background:url('style/images/f_rep.jpg') repeat-x; " width="146">&nbsp;</td>
<td style="background:url('style/images/f_r.jpg') no-repeat right; " width=65>&nbsp;</td>
</tr>
</table>
</body></html>

http://img341.imageshack.us/img341/8561/69312009.jpg

loki421
02-21-2011, 06:19 PM
This isn't really a php issue.

Your problem is eith styling (css) or because you are using a table within a table.

I bet you've got a height set somewhere that's making the 'header' image cell bigger than it needs to be.

Try taking them out of a table and using divs instead, failing that scan through your css and find the matching style and adjust it until it's where you want it.

Hope that helps :)

loki421
02-21-2011, 06:23 PM
Sorry, after looking at your code again it appears you have a <br /> tag around line 33 that you need to delete....

And the bar is wrapped in a <p> tag, get rid of that too and it should jump up a bit :)

metalspeed
02-21-2011, 07:23 PM
Sorry, after looking at your code again it appears you have a <br /> tag around line 33 that you need to delete....

And the bar is wrapped in a <p> tag, get rid of that too and it should jump up a bit :)

I has deleted both of them but its a little bit space there about 0.4 cm

loki421
02-21-2011, 08:30 PM
Can you post what you have now?

metalspeed
02-21-2011, 09:08 PM
This is how the code looks.

<head>

<TITLE><? echo $title;?></TITLE>
<meta http-equiv="Pragma" content="no-cache">
<meta content="index, follow" name="robots">
<meta content="index,follow" name="Robots">
<link href="style/<?php echo $style; ?>/css/style.css" type="text/css" rel="StyleSheet">
<link rel="shortcut icon" href="favicon.png" type="image/ico">
<link rel="alternate" type="application/rss+xml" title="RSS" href="rss.php">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="keywords" content="<? echo $mainkeys ?>">
<meta name="description" content="<? echo $mainkeys ?>">
</head>

<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">

<table border="0" width="100%" id="table4" cellspacing="0" cellpadding="0">
<tr>
<td width="4">&nbsp;</td>
<td>
<p align="center">
<img border="0" src="style/images/header.JPG" width="1000" height="127"></td>
<td width="4">&nbsp;</td>
</tr>
</table>



<table style="border-collapse: collapse;" border="0" width="100%">
<tbody>
</table>
<p align="center"> <!--- END Header --->




<!--- Begin Icons --->
_________________________HERE IS THE BAR CODE__________________________________
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="25">
<img border="0" src="style/images/men_l.jpg" width="25" height="50"></td>
<td align="center" style="background:url(style/<?php echo $style; ?>/images/bar_02.gif) repeat-x;" width="95%">
<?php echo $cats; ?>
</td>
<td>
<img border="0" src="style/images/men_r.jpg" width="25" height="50"></td>
</tr>
</table>
_______________________________________________________________
</td>
</tr>
</tbody></table>

</div>
<!-- address bar -->
<br>

<table border="0" align="center" cellspacing="0" width="100%">
<tr>
<td width="140" style="vertical-align:middle"><img src="style/<?php echo $style; ?>/images/most.jpg" style="padding-top:3px;"></td>
<td dir="ltr" style="vertical-align:middle" width="88%">
<marquee onmouseover='this.stop()' onmouseout='this.start()'>
<?php echo $most; ?>
</marquee></td>
</tr>
</table>
<br>
<center>
<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="80%" align="center">
<thead>
<tr>
<td class="tcat" colspan="4" align="center" height="29">
<a style="float:left" onclick="return toggle_collapse('motaz_system')"></a> .:: اعلانات الموقع ::. </td>
<tbody id="collapseobj_motaz_system" style="">

</tr>

</thead>

<tr>
<td align="center" width="25%" class="alt2">
<?php echo $ban1; ?>
</td>
<td align="center" width="25%" class="alt1">
<?php echo $ban2; ?>
</td>
<td align="center" width="25%" class="alt2">
<?php echo $ban3; ?>
</td>
<td align="center" width="25%" class="alt1">
<?php echo $ban4; ?>
</td>

</tr>




<tr>
<td class="tcat" colspan="4" align="center" height="29">
<table border="0" width="100%" align="center">
<td width="25%" class="alt2">
<p align="center">
<?php echo $topban; ?>
</p></td>

</table>

</td>
</tr>
</table>
</center>

<br>
<table style="border-collapse: collapse;" border="0" cellpadding="0" cellspacing="0" width="100%">

<tbody>
<tr>

<td width="100%" valign="top">

<table align="center" border="0" cellpadding="0" cellspacing="0">
<tbody>
<?
if($_GET['action'] == "viewCat"){
echo "";
}elseif($_GET['action'] == "topic"){
echo "";
}elseif($_GET['action'] == "404"){
echo "";
}elseif($_GET['action'] == "403"){
echo "";
}elseif($_GET['action'] == "search"){
echo "";
}elseif($_GET['action'] == "random"){
echo "";
}else{
?>
<tr>
<td align="center">

<img src="style/<?php echo $style; ?>/images/sticky.jpg"><br><br>
</td>
</tr>
<tr>
<td dir="rtl" align="center">
<table border="0" cellspacing="0">
<tbody><tr>

<?php echo $sticky; ?>

</tr>
</tbody></table>
</td>
</tr>
<? } ?>
<tr>
<td align="center">

<img src="style/<?php echo $style; ?>/images/main.jpg"><br><br>
</td>
</tr>
<tr>
<td dir="rtl" align="<?php echo $align; ?>">
<table border="0" cellspacing="0">
<tbody><tr>

<?php echo $main; ?>

</tr>
</tbody></table>
<table border="0" cellpadding="2" cellspacing="0" align="center">
<tbody><tr>


<?
if($_GET['action'] == "viewCat"){
echo "$catpages<br>";
}elseif($_GET['action'] == "random"){
echo "<br>";
}else{
echo "$pages<br>";
}

?>


</tr>
</tbody></table>
</td>
</tr>
</tbody>
</table>
<br>
</td>


</tr>
</tbody>
</table>
<p class="copyright" align="center">
By : <a title="alon_de_loco By : alon_de_loco" href="http://aflamfox.com">alon_de_loco</a>
</p>
<table border=0 align=center cellspacing=0 width=96% height=60 dir=ltr id="table5">
<tr>
<td style="background:url('style/images/f_l.jpg') no-repeat left; " width=66>&nbsp;</td>
<td style="background:url('style/images/f_rep.jpg') repeat-x; ">&nbsp;</td>
<td align=center style="background:url('style/images/f_h.jpg') no-repeat; " width=526>
&nbsp;</td>
<td style="background:url('style/images/f_rep.jpg') repeat-x; " width="146">&nbsp;</td>
<td style="background:url('style/images/f_r.jpg') no-repeat right; " width=65>&nbsp;</td>
</tr>
</table>
</body></html>
And This Is The Image of the site now.
http://img511.imageshack.us/img511/8427/93726251.jpg

loki421
02-21-2011, 10:13 PM
I might be wrong, but looks like you've got invalid markup on line 32, you're opening a <p> tag and I can't see where you're closing it...?

Delete that tag on line 32, that should sort you out. Anything in a <p> tag will be treated as a paragraph, and have margin / padding apllied by the browser (unless you have reset the styles in a global css file or something?).

Anyway, remove that line, and check all your tags are valid, then see how it looks, should be ok then. :)

metalspeed
02-22-2011, 02:30 PM
I might be wrong, but looks like you've got invalid markup on line 32, you're opening a <p> tag and I can't see where you're closing it...?

Delete that tag on line 32, that should sort you out. Anything in a <p> tag will be treated as a paragraph, and have margin / padding apllied by the browser (unless you have reset the styles in a global css file or something?).

Anyway, remove that line, and check all your tags are valid, then see how it looks, should be ok then. :)

Sorry for answer late i will try it :D

Fou-Lu
02-22-2011, 03:06 PM
Definitely not PHP, moving from PHP to HTML/CSS forum.

metalspeed
02-22-2011, 05:52 PM
Thanks For This Help You are best:D



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum