Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Help with items in menu
Old 12-18-2007, 09:16 PM Help with items in menu
Extreme Talker

Posts: 218
Trades: 0
I have an asp header file, and for some reason all the items in the left column navigation menu (login fields and links) are lining up to the right in the column instead of the center.

Any help will be appreciated. thanks

Code:
<% Response.Buffer = True %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0.11 Transitional//EN">
<html><head>
 <title>ExampleWTA</title>
    <script src="java.js" type="text/javascript"></script>
    <link rel="STYLESHEET" type="text/css" href="styles.css">
</head><body bgcolor="#ffffff">
 
<br />
<table width="75%" align="center" cellpadding="0" cellspacing="0" bordercolor="#d4d4d4" style="border: solid 1px;"><tr>
 <td style="padding: 10px;">
<tr>
 <td style="padding: 10px;">
  <table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>
   <td><img src="http://www.webmaster-talk.com/images/img11.jpg" height="134" width="461">
   <img src="http://www.webmaster-talk.com/images/topimg2.jpg" height="160" width="309"></td>
  </tr></table>
 </td>
</tr></table>
<br /><br />
<table width="75%" align="center" cellpadding="0"  cellspacing="0" bordercolor="#d4d4d4" style="border: solid 1px;">
<tr bgcolor="White">
 <td>
<table height="20" cellpadding="0" cellspacing="0" border="0" width="100%" width="100%"><tr>
      <td width="200"><img src="img/_example/pixel.gif" width="200" height="1" alt="" border="0" /></td>
      <td width="100%">
             <table border="0" width="100%" align="right" cellpadding="2" cellspacing="0">
            </table>
         </td>
     </tr></table>
    <td>
        <table width="100%" align="center" cellpadding="0" cellspacing="0" border="0"><tr>
         <td width="200" bgcolor="White" valign="top">
    <img src="img/_example/pixel.gif" width="200" height="1" alt="" border="0" />
                <table width="95%" height="98%" align="center" cellpadding="2" cellspacing="0" border="0"><tr>
                 <td valign="top">
                    <br /><br />
                    <!-- SIDE MENU -->
 
                    <% If Session("PMMS_IN") = "True" Then '// CHECK IF MEMBER IS LOGGED IN ALREADY %>
 
                            <!-- MENU FOR LOGGED MEMBER ONLY -->
 
                                <br />
                                <table width="80%" align="center" cellpadding="2" cellspacing="0" border="0"><tr>
                                    <td colspan="2">Welcome  <i><%=Session("PMMS_NAME")%></i><br /><br /></td>
                                </tr><tr>
                                 <td width="15">&ordm;</td>
                                 <td><a class="lnk" href="profile.asp">My Profile</a></td>
                                </tr><tr>
                                 <td width="15">&ordm;</td>
                                 <td><a class="lnk" href="_purchase.asp">Purchase</a></td>
                                </tr><tr>
                                 <td width="15">&ordm;</td>
                                 <td><a class="lnk" href="newsletter.asp">Newsletters</a></td>
                                </tr><tr>
                                 <td width="15">&ordm;</td>
                                 <td><a class="lnk" href="members.asp">Member List</a></td>
                                </tr><tr>
                                 <td width="15">&ordm;</td>
                                 <td><a class="lnk" href="members_by_group.asp">Group Member List</a></td>
                                </tr><tr>
                                 <td width="15">&ordm;</td>
                                 <td><a class="lnk" href="file_cate.asp">File Repository</a></td>
                                </tr><tr>
                                 <td width="15">&ordm;</td>
                                 <td><a href="login.asp?logout=True">Log Out</a></td>
                                </tr></table>
                                <br />
                            <!-- [ MENU FOR LOGGED MEMBER ONLY ] -->
 
                        <% Else  ' IF NOT LOGGED IN THEN SHOW THE LOGIN FORM%>
 
                            <!-- INCLUDE LOGIN FORM -->
                                <form action="login.asp" method="post">
                                    <br />
                                    <table align="center" cellpadding="2" cellspacing="0" border="0"><tr>
                                     <td>Username:<br /><input class="textbox" type="Text" name="username" value="<%=Trim(Request.Cookies("USERNAME"))%>" maxlength="25" size="20" /></td>
                                    </tr><tr>
                                     <td>Password:<br /><input class="textbox" type="Password" name="password" value="" maxlength="25" size="20" /></td>
                                    </tr><tr>
                                     <td>
                                            <input type="Checkbox" name="rem" value="1"<%If NOT Trim(Request.Cookies("USERNAME")) = "" Then%> checked<%End If%> />Save Username<br />
                                            <input style="width: 100%;" type="Submit" value="Login Now" /><br /><br /><a href="reminder.asp">Password Reminder</a>
                                        </td>
                                    </tr></table><br />
                                    <input type="Hidden" name="mode" value="login" /><input type="Hidden" name="ref_page" value="<% If Len(Trim(Request.QueryString("ref_page"))) = 0 Then%><%=Request.ServerVariables("URL") & "?" & Request.QueryString%><%Else%><%=Request.QueryString("ref_page")%><%End If%>" />
                                </form>
                            <!-- [ INCLUDE LOGIN FORM ] -->
                        <% End If %>
                        <br /><br />
         <img src="img/_example/arrow_gray_top_inverse_b.gif" width="9" height="8" alt="" border="0" /><a class="MainMenuLNKExample" href="index.asp">HOME</a></br>
         <img src="img/_example/arrow_gray_top_inverse_b.gif" width="9" height="8" alt="" border="0" /><a class="MainMenuLNKExample" href="anymember.asp">ALL MEMBERS</a></br>
         <img src="img/_example/arrow_gray_top_inverse_b.gif" width="9" height="8" alt="" border="0" /><a class="MainMenuLNKExample" href="groupmembers.asp">GROUP 2 or 5</a></br>
         <img src="img/_example/arrow_gray_top_inverse_b.gif" width="9" height="8" alt="" border="0" /><a class="MainMenuLNKExample" href="help.asp">HELP ME</a></br>
         <% If Session("PMMS_IN") = "True" Then '// CHECK IF MEMBER IS LOGGED IN ALREADY %>
         <img src="img/_example/arrow_gray_top_inverse_b.gif" width="9" height="8" alt="" border="0" /><a class="MainMenuLNKExample" href="login.asp?logout=True">LOG OUT</a></br>
         <% Else %>
         <img src="img/_example/arrow_gray_top_inverse_b.gif" width="9" height="8" alt="" border="0" /><a class="MainMenuLNKExample" href="register.asp">REGISTER</a>
                 <% End If %>
                    <!-- [ SIDE MENU ] -->
                    <br /><br />
                    </td>
                </tr></table>
            </td>
         <td width="7" valign="top" height="100%">
                <table height="100%" width="7" cellpadding="0" cellspacing="0" border="0"><tr>
                 <td><img border="0" src="img/side_1.gif" width="7" height="28"/></td>
                </tr><tr>
                 <td height="100%" background="img/side_2.gif"><img src="img/pixel.gif" width="7" height="1" alt="" border="0"></td>
                </tr></table>
            </td>
         <td valign="top">
                <table width="95%" align="center" cellpadding="2" cellspacing="0" border="0"><tr>
                 <td><br /><br />
                    <!-- MAIN PAGE CONTENT -->

Last edited by chrisj; 12-18-2007 at 10:54 PM..
chrisj is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-19-2007, 02:26 PM Re: Help with items in menu
kline11's Avatar
SearchBliss Web Tools

Posts: 1,788
Name: John
Location: USA
Trades: 0
Your HTML was messed up.

Try this:
Code:
<% Response.Buffer = True %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0.11 Transitional//EN">
<html><head>
 <title>ExampleWTA</title>
    <script src="java.js" type="text/javascript"></script>
    <link rel="STYLESHEET" type="text/css" href="styles.css">
</head><body bgcolor="#ffffff">
 
<br />
<table width="75%" align="center" cellpadding="0" cellspacing="0" bordercolor="#d4d4d4" style="border: solid 1px;"><tr>
 <td style="padding: 10px;">
<tr>
 <td style="padding: 10px;">
  <table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>
   <td><img src="http://www.webmaster-talk.com/images/img11.jpg" height="134" width="461">
   <img src="http://www.webmaster-talk.com/images/topimg2.jpg" height="160" width="309"></td>
  </tr></table>
 </td>
</tr></table>
<br /><br />
<table width="75%" align="center" cellpadding="0"  cellspacing="0" bordercolor="#d4d4d4" style="border: solid 1px;">
<tr>
      
<td width="100%">
             
<table border="0" width="100%" align="right" cellpadding="2" cellspacing="0">
            
</table>
</td>
</tr>
</table>
    <td>
        <table width="100%" align="center" cellpadding="0" cellspacing="0" border="0"><tr>
         <td width="200" bgcolor="White" valign="top">
    <img src="img/_example/pixel.gif" width="200" height="1" alt="" border="0" />
                <table width="95%" height="98%" align="center" cellpadding="2" cellspacing="0" border="0"><tr>
                 <td valign="top">
                    <br /><br />
                    <!-- SIDE MENU -->
 
                    <% If Session("PMMS_IN") = "True" Then '// CHECK IF MEMBER IS LOGGED IN ALREADY %>
 
                            <!-- MENU FOR LOGGED MEMBER ONLY -->
 
                                <br />
                                <table width="80%" align="center" cellpadding="2" cellspacing="0" border="0"><tr>
                                    <td colspan="2">Welcome  <i><%=Session("PMMS_NAME")%></i><br /><br /></td>
                                </tr><tr>
                                 <td width="15">&ordm;</td>
                                 <td><a class="lnk" href="profile.asp">My Profile</a></td>
                                </tr><tr>
                                 <td width="15">&ordm;</td>
                                 <td><a class="lnk" href="_purchase.asp">Purchase</a></td>
                                </tr><tr>
                                 <td width="15">&ordm;</td>
                                 <td><a class="lnk" href="newsletter.asp">Newsletters</a></td>
                                </tr><tr>
                                 <td width="15">&ordm;</td>
                                 <td><a class="lnk" href="members.asp">Member List</a></td>
                                </tr><tr>
                                 <td width="15">&ordm;</td>
                                 <td><a class="lnk" href="members_by_group.asp">Group Member List</a></td>
                                </tr><tr>
                                 <td width="15">&ordm;</td>
                                 <td><a class="lnk" href="file_cate.asp">File Repository</a></td>
                                </tr><tr>
                                 <td width="15">&ordm;</td>
                                 <td><a href="login.asp?logout=True">Log Out</a></td>
                                </tr></table>
                                <br />
                            <!-- [ MENU FOR LOGGED MEMBER ONLY ] -->
 
                        <% Else  ' IF NOT LOGGED IN THEN SHOW THE LOGIN FORM%>
 
                            <!-- INCLUDE LOGIN FORM -->
                                <form action="login.asp" method="post">
                                    <br />
                                    <table align="center" cellpadding="2" cellspacing="0" border="0"><tr>
                                     <td>Username:<br /><input class="textbox" type="Text" name="username" value="<%=Trim(Request.Cookies("USERNAME"))%>" maxlength="25" size="20" /></td>
                                    </tr><tr>
                                     <td>Password:<br /><input class="textbox" type="Password" name="password" value="" maxlength="25" size="20" /></td>
                                    </tr><tr>
                                     <td>
                                            <input type="Checkbox" name="rem" value="1"<%If NOT Trim(Request.Cookies("USERNAME")) = "" Then%> checked<%End If%> />Save Username<br />
                                            <input style="width: 100%;" type="Submit" value="Login Now" /><br /><br /><a href="reminder.asp">Password Reminder</a>
                                        </td>
                                    </tr></table><br />
                                    <input type="Hidden" name="mode" value="login" /><input type="Hidden" name="ref_page" value="<% If Len(Trim(Request.QueryString("ref_page"))) = 0 Then%><%=Request.ServerVariables("URL") & "?" & Request.QueryString%><%Else%><%=Request.QueryString("ref_page")%><%End If%>" />
                                </form>
                            <!-- [ INCLUDE LOGIN FORM ] -->
                        <% End If %>
                        <br /><br />
         <img src="img/_example/arrow_gray_top_inverse_b.gif" width="9" height="8" alt="" border="0" /><a class="MainMenuLNKExample" href="index.asp">HOME</a><br>
         <img src="img/_example/arrow_gray_top_inverse_b.gif" width="9" height="8" alt="" border="0" /><a class="MainMenuLNKExample" href="anymember.asp">ALL MEMBERS</a><br>
         <img src="img/_example/arrow_gray_top_inverse_b.gif" width="9" height="8" alt="" border="0" /><a class="MainMenuLNKExample" href="groupmembers.asp">GROUP 2 or 5</a><br>
         <img src="img/_example/arrow_gray_top_inverse_b.gif" width="9" height="8" alt="" border="0" /><a class="MainMenuLNKExample" href="help.asp">HELP ME</a><br>
         <% If Session("PMMS_IN") = "True" Then '// CHECK IF MEMBER IS LOGGED IN ALREADY %>
         <img src="img/_example/arrow_gray_top_inverse_b.gif" width="9" height="8" alt="" border="0" /><a class="MainMenuLNKExample" href="login.asp?logout=True">LOG OUT</a><br>
         <% Else %>
         <img src="img/_example/arrow_gray_top_inverse_b.gif" width="9" height="8" alt="" border="0" /><a class="MainMenuLNKExample" href="register.asp">REGISTER</a>
                 <% End If %>
                    <!-- [ SIDE MENU ] -->
                    <br /><br />
                    </td>
                </tr></table>
            </td>
         <td width="7" valign="top" height="100%">
                <table height="100%" width="7" cellpadding="0" cellspacing="0" border="0"><tr>
                 <td><img border="0" src="img/side_1.gif" width="7" height="28"/></td>
                </tr><tr>
                 <td height="100%" background="img/side_2.gif"><img src="img/pixel.gif" width="7" height="1" alt="" border="0"></td>
                </tr></table>
            </td>
         <td valign="top">
                </table><tr>
                 <td><br /><br />
                    <!-- MAIN PAGE CONTENT -->
</body>
</html>
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
kline11 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Help with items in menu
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.41612 seconds with 12 queries