If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > middle of the page!!

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-16-06, 15:24
jrahma jrahma is offline
Registered User
 
Join Date: Apr 2003
Posts: 101
middle of the page!!

I have assigned the code to display the text and button in the middle of the page vert and horiz but it's only centering it in horiz but not vert. why?



<%@ Page Language="C#" AutoEventWireup="true" CodeFile="index.aspx.cs" Inherits="_Default" Culture="ar-BH" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html dir="rtl" lang="ar-bh" xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body dir="rtl" lang="ar-bh" bottommargin="5" leftmargin="5" rightmargin="5" topmargin="5">
<form id="form1" runat="server">
<table align="center" height="100%" width="100%" border="0" cellpadding="0" cellspacing="0" dir="rtl" lang="ar-bh">
<tr>
<td align="center" valign="middle" width="100%" height="100%">
أهلا بكم في مركز استطلاع الرأي<br /><br />
<asp:Button ID="btnRegister" runat="server" Text="دخول المشتركين" />&nbsp;<asp:Button ID="btnLogin"
runat="server" Text="مشترك جديد" /></td>
</tr>
</table>
</form>
</body>
</html>
Reply With Quote
  #2 (permalink)  
Old 04-17-06, 11:57
Teddy Teddy is offline
Purveyor of Discontent
 
Join Date: Mar 2003
Location: The Bottom of The Barrel
Posts: 6,075
The table is within a form, the form is not aligned...
__________________
oh yeah... documentation... I have heard of that.

*** What Do You Want In The MS Access Forum? ***
Reply With Quote
  #3 (permalink)  
Old 04-17-06, 16:43
jrahma jrahma is offline
Registered User
 
Join Date: Apr 2003
Posts: 101
it was kept by Microsoft Visual Web Developer Express

do i have to keep it within a form?
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
Pingbacks are On
Refbacks are On