Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6187819
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T02:07:25+00:00 2026-05-24T02:07:25+00:00

i am trying to vertically align the table present in the panel but i

  • 0

i am trying to vertically align the table present in the panel but i cant and when i apply style properties to the table it does not work ? means there would be no effect of style property on it as my code is given below,

<asp:Panel ID="Panel1" runat="server" 
        style="z-index:0;left:250px;position:absolute;top:160px; height: 160px; padding:10" 
        BackColor="Green" Width="300px">
        <div style="width: 295px; height: 155px;" align= "center">
        <table style="height: 48px; width: 187px; margin-left:0px;  min-height:14px; min-width:55px; vertical-align:bottom" align="center" bgcolor="green" >
    <tr>
    <td>
        <asp:Label ID="Label2" runat="server" Text="UserName" ForeColor="White"></asp:Label>
    </td>
    <td>
        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
    </td>
    </tr>
    <tr>
    <td>
        <asp:Label ID="Label3" runat="server" Text="Password" ForeColor="White"></asp:Label>
    </td>
    <td>
        <asp:TextBox ID="TextBox2" textmode="Password" runat="server"></asp:TextBox>
    </td>
    </tr>
    <tr>
    <td>
        <asp:Label ID="Label4" runat="server" ForeColor="White"></asp:Label>
    </td>
    <td>
        <asp:Button ID="Button1" runat="server" Text="Login" onclick="Button1_Click" />
    </td>
    </tr>
    </table>
    </div>
   </asp:Panel>  

Hopes for your suggestions

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T02:07:26+00:00Added an answer on May 24, 2026 at 2:07 am

    Vertical alignment of some content within parent container is always tricky if you don’t know the height of the content. Solution is to have a wrapper div in between parent & content elements. Then have outer container with "display:table" and wrapper div with "display:table-cell" aligned vertically in middle. See this fiddle for the illustration: http://jsfiddle.net/myXL3/3/

    For complete information on this approach, see this excellent article: http://www.jakpsatweb.cz/css/css-vertical-center-solution.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to vertically align a table in my document to the bottom of
I am trying to make text float in the middle vertically. This means there
I am trying to align label text vertically aligned for my iPhone application Timer.
I'm trying to align some text of different sizes vertically, however, Firefox displays the
I am trying to vertically align text in IE7 is proving to be a
I am trying to make a simple input button center-align within a table cell.
I am trying to override the style of a descendant (not the direct child)
I'm trying to horizontally and vertically center a modal window inside a div. I
I'm trying to make an asterisk line up vertically with surrounding text/graphics rather than
I gave up on trying to center an image vertically and horizontally. I seen

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.