Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 10 of 10
  1. #1
    New Coder
    Join Date
    Feb 2011
    Posts
    10
    Thanks
    5
    Thanked 0 Times in 0 Posts

    How to move the bar up.

    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:
    PHP Code:
    <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 --->
    _________________________[B]HERE IS THE BAR CODE[/B]__________________________________
    <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>

  • #2
    Regular Coder
    Join Date
    Feb 2009
    Location
    Worcester
    Posts
    172
    Thanks
    13
    Thanked 6 Times in 6 Posts
    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

  • Users who have thanked loki421 for this post:

    metalspeed (02-22-2011)

  • #3
    Regular Coder
    Join Date
    Feb 2009
    Location
    Worcester
    Posts
    172
    Thanks
    13
    Thanked 6 Times in 6 Posts
    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

  • Users who have thanked loki421 for this post:

    metalspeed (02-22-2011)

  • #4
    New Coder
    Join Date
    Feb 2011
    Posts
    10
    Thanks
    5
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by loki421 View Post
    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

  • #5
    Regular Coder
    Join Date
    Feb 2009
    Location
    Worcester
    Posts
    172
    Thanks
    13
    Thanked 6 Times in 6 Posts
    Can you post what you have now?

  • Users who have thanked loki421 for this post:

    metalspeed (02-22-2011)

  • #6
    New Coder
    Join Date
    Feb 2011
    Posts
    10
    Thanks
    5
    Thanked 0 Times in 0 Posts
    This is how the code looks.
    PHP Code:
    <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 --->
    _________________________[B]HERE IS THE BAR CODE[/B]__________________________________
    <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.

  • #7
    Regular Coder
    Join Date
    Feb 2009
    Location
    Worcester
    Posts
    172
    Thanks
    13
    Thanked 6 Times in 6 Posts
    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.
    Last edited by loki421; 02-21-2011 at 10:14 PM. Reason: my spelling sucks!

  • Users who have thanked loki421 for this post:

    metalspeed (02-22-2011)

  • #8
    New Coder
    Join Date
    Feb 2011
    Posts
    10
    Thanks
    5
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by loki421 View Post
    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

  • #9
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,987
    Thanks
    4
    Thanked 2,660 Times in 2,629 Posts
    Definitely not PHP, moving from PHP to HTML/CSS forum.
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 

  • #10
    New Coder
    Join Date
    Feb 2011
    Posts
    10
    Thanks
    5
    Thanked 0 Times in 0 Posts
    Thanks For This Help You are best


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •