Announcement

Collapse
No announcement yet.

Centering buttons?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Centering buttons?

    Im sorry if this is in wrong category but here is the code in my header,now i need to know how to center the top buttons you know the : register,user cp,f.a.q etc etc
    underneath is my header code if someone could reply with a version of the same header only where the buttons are centered.
    i would much appreciate it


    <table width="780" border="0" cellspacing="0" cellpadding="0"

    align="center">
    <tr>
    <td width="15"><img src="images/top_left.gif" width="15"

    height="15"></td>
    <td width="750" background="images/top_extend.gif"></td>
    <td width="15"><img src="images/top_right.gif" width="15"

    height="15"></td>
    </tr>
    <tr>
    <td width="15" background="images/left_extend.gif"></td>
    <td width="750" bgcolor="#C0C0C0" valign="top" align="center">
    <div align="center">
    <table width="95%" border="0" cellspacing="0" cellpadding="0"

    align="center">
    <tr>
    <td valign="top" align="right">
    <table border="0" width="100%" cellpadding="0"

    cellspacing="0" align="right">
    <tr>
    <td valign="top" align="left"><a

    href="index.php?s=$session[sessionhash]"><img src="images/vBulletin_logo.gif"

    border="0" alt="$bbtitle"></a></td>
    <td valign="bottom" align="right" nowrap>
    <!-- toplinks -->
    <a href="usercp.php?s=$session[sessionhash]"><img

    src="images/top_profile.gif" alt="Here you can view your

    subscribed threads, work with private messages and edit your profile and

    preferences" border="0"></a>
    <a

    href="register.php?s=$session[sessionhash]&action=signup"><img

    src="images/top_register.gif" alt="Registration is free!"

    border="0"></a>
    <a href="calendar.php?s=$session[sessionhash]"><img

    src="images/top_calendar.gif" alt="Calendar" border="0"></a>
    <a href="memberlist.php?s=$session[sessionhash]"><img

    src="images/top_members.gif" alt="Find other members"

    border="0"></a>
    <a

    href="misc.php?s=$session[sessionhash]&action=faq"><img

    src="images/top_faq.gif" alt="Frequently Asked Questions"

    border="0"></a>
    <a href="search.php?s=$session[sessionhash]"><img

    src="images/top_search.gif" alt="Search" border="0"></a>
    <a href="index.php?s=$session[sessionhash]"><img

    src="images/top_home.gif" alt="Home" border="0"></a>
    <!-- <a

    href="member.php?s=$session[sessionhash]&action=logout"><img

    src="images/top_logout.gif" alt="Logout" border="0"></a> -->
    <!-- /toplinks -->
    </td>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    <table width="95%" border="0" cellspacing="0" cellpadding="0"

    align="center">
    <tr>
    <td>

  • #2
    Here ya go

    Code:
    <table width="780" border="0" cellspacing="0" cellpadding="0" 
    
    align="center"> 
    <tr> 
    <td width="15"><img src="images/top_left.gif" width="15" 
    
    height="15"></td> 
    <td width="750" background="images/top_extend.gif"></td> 
    <td width="15"><img src="images/top_right.gif" width="15" 
    
    height="15"></td> 
    </tr> 
    <tr> 
    <td width="15" background="images/left_extend.gif"></td> 
    <td width="750" bgcolor="#C0C0C0" valign="top" align="center"> 
    <div align="center"> 
    <table width="95%" border="0" cellspacing="0" cellpadding="0" 
    
    align="center"> 
    <tr> 
    <td valign="top" align="right"> 
    <table border="0" width="100%" cellpadding="0" 
    
    cellspacing="0" align="right"> 
    <tr> 
    <td valign="top" align="left"><a 
    
    href="index.php?s=$session[sessionhash]"><img src="images/vBulletin_logo.gif" 
    
    border="0" alt="$bbtitle"></a></td> 
                  <td valign="bottom" align="center" nowrap> 
                    <!-- toplinks -->
                    <a href="usercp.php?s=$session[sessionhash]"><img 
    
    src="images/top_profile.gif" alt="Here you can view your 
    
    subscribed threads, work with private messages and edit your profile and 
    
    preferences" border="0"></a> <a 
    
    href="register.php?s=$session[sessionhash]&action=signup"><img 
    
    src="images/top_register.gif" alt="Registration is free!" 
    
    border="0"></a> <a href="calendar.php?s=$session[sessionhash]"><img 
    
    src="images/top_calendar.gif" alt="Calendar" border="0"></a> <a href="memberlist.php?s=$session[sessionhash]"><img 
    
    src="images/top_members.gif" alt="Find other members" 
    
    border="0"></a> <a 
    
    href="misc.php?s=$session[sessionhash]&action=faq"><img 
    
    src="images/top_faq.gif" alt="Frequently Asked Questions" 
    
    border="0"></a> <a href="search.php?s=$session[sessionhash]"><img 
    
    src="images/top_search.gif" alt="Search" border="0"></a> <a href="index.php?s=$session[sessionhash]"><img 
    
    src="images/top_home.gif" alt="Home" border="0"></a> 
                    <!-- <a 
    
    href="member.php?s=$session[sessionhash]&action=logout"><img 
    
    src="images/top_logout.gif" alt="Logout" border="0"></a> -->
                    <!-- /toplinks -->
                  </td> 
    </tr> 
    </table> 
    </td> 
    </tr> 
    </table> 
    <table width="95%" border="0" cellspacing="0" cellpadding="0" 
    
    align="center"> 
    <tr> 
    <td>
    Board of the Month: November
    Websites: Pixeljunction , vBulletin.org
    Button Sets: XP and Aqua Button sets! FREE!
    vB Customization: My sig is now vbulletin compliant. Contact me to make yours compliant too!

    Comment


    • #3
      Well thanks but that doesnt help me because that just gives me a centered version of the vbulletin logo what i have is an image which is much wider and i need to center that as you mite notice in my code.If you could help me out with this it would be much appreciated.

      Comment


      • #4
        Here:

        Code:
        <table width="780" border="0" cellspacing="0" cellpadding="0" 
        
        align="center"> 
        <tr> 
        <td width="15"><img src="images/top_left.gif" width="15" 
        
        height="15"></td> 
        <td width="750" background="images/top_extend.gif"></td> 
        <td width="15"><img src="images/top_right.gif" width="15" 
        
        height="15"></td> 
        </tr> 
        <tr> 
        <td width="15" background="images/left_extend.gif"></td> 
        <td width="750" bgcolor="#C0C0C0" valign="top" align="center"> 
        <div align="center"> 
        <table width="95%" border="0" cellspacing="0" cellpadding="0" 
        
        align="center"> 
        <tr> 
        <td valign="top" align="right"> 
        <table border="0" width="100%" cellpadding="0" 
        
        cellspacing="0" align="right"> 
        <tr> 
        <td valign="top" align="left"><a 
        
        href="index.php?s=$session[sessionhash]"><img src="images/vBulletin_logo.gif" 
        
        border="0" alt="$bbtitle"></a></td> 
        </tr> 
        <tr> 
        <td valign="top">
        <p align="center"> 
        <a href="usercp.php?s=$session[sessionhash]"><img 
        
        src="images/top_profile.gif" alt="Here you can view your 
        
        subscribed threads, work with private messages and edit your profile and 
        
        preferences" border="0"></a> 
        <a 
        
        href="register.php?s=$session[sessionhash]&action=signup"><img 
        
        src="images/top_register.gif" alt="Registration is free!" 
        
        border="0"></a> 
        <a href="calendar.php?s=$session[sessionhash]"><img 
        
        src="images/top_calendar.gif" alt="Calendar" border="0"></a> 
        <a href="memberlist.php?s=$session[sessionhash]"><img 
        
        src="images/top_members.gif" alt="Find other members" 
        
        border="0"></a> 
        <a 
        
        href="misc.php?s=$session[sessionhash]&action=faq"><img 
        
        src="images/top_faq.gif" alt="Frequently Asked Questions" 
        
        border="0"></a> 
        <a href="search.php?s=$session[sessionhash]"><img 
        
        src="images/top_search.gif" alt="Search" border="0"></a> 
        <a href="index.php?s=$session[sessionhash]"><img 
        
        src="images/top_home.gif" alt="Home" border="0"></a> 
        <!-- <a 
        
        href="member.php?s=$session[sessionhash]&action=logout"><img 
        
        src="images/top_logout.gif" alt="Logout" border="0"></a> --> 
        <!-- /toplinks --> 
        </td> 
        </tr> 
        </table> 
        </td> 
        </tr> 
        </table> 
        <table width="95%" border="0" cellspacing="0" cellpadding="0" 
        
        align="center"> 
        <tr> 
        <td>

        Comment


        • #5
          thanks,much appreciated

          Comment

          widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
          Working...
          X