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 7590565
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T20:25:58+00:00 2026-05-30T20:25:58+00:00

I have a text and table within another table td tag. That inner table

  • 0

I have a text and table within another table td tag. That inner table has to be aligned to the top-right corner of the outer table. But in my case,the inner table is aligned to right but not top. There is an unnecessary space between text and inner table.

Any suggestions please?

Here is my code….

<html><head>  
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta http-equiv="content-style-type" content="text/css">                        
<style type="text/css">
body{color:#000000; font-family:Arial,Tahoma,helvetica,sans-serif; font-size:9pt;}
table{ font-family:Arial,Tahoma,helvetica,sans-serif;  font-size:9pt;} 
tr{ font-family:Arila,Tahoma,helvetica,sans-serif; font-size:9pt;} 
.header{background:#D2E5FB; font-family:Arial,Tahoma,helvetica,sans-serif; color:#000000;
   padding: 1 1 1 1; border-bottom:1px solid #AEAEAE; border-right:1px solid #AEAEAE;
}
.tableRow{background:#FFFFFF;border-bottom:1px solid #AEAEAE; border-right:1px solid #AEAEAE;padding:3 5 3 0;}
.matches{font-family:Arila,Tahoma,helvetica,sans-serif; font-size:9pt;padding:8 0 8 2;}.ResultTr{}
</style>
<body>
<table style="border:1px solid red;" width="100%" cellpadding="0" cellspacing="2" >
<tr><td  class = "matches" colspan="  7">
 <nobr>
   <b>Number of Matching Addresses:&nbsp;  165 ,&nbsp;Page Numbers</b>
  <style>
      #Paginator{float:right;margin:0px;}<p>
      #Paginator ul{ margin:0px;padding:0px;}
      #Paginator ul li{ font-family::Arial,Tahoma,helvetica,sans-serif;font-size:9pt;list-style:none;
      float:left;margin:2px;
      padding:4px 8px 2px 8px;border:1px solid black; cursor:pointer; }
      #Paginator ul li,#PrevPage{display:none;}
  </style>

 <script>
     var ga_pageId = new Array();
     function pageNavigate()
     {
         if(document.getElementById("FromPage"))
         {  var fromPage = parseInt( document.getElementById("FromPage").value); } 
         if(document.getElementById("ToPage"))
         { var toPage =  parseInt( document.getElementById("ToPage").value); }
         if(fromPage == 1)
         { document.getElementById("PrevPage").style.display="none";} 
         else
         {  document.getElementById("PrevPage").style.display="inline"; }
         if(toPage == 4 )
          {  document.getElementById("NextPage").style.display="none";  }
         else{ document.getElementById("NextPage").style.display="inline";   }

      for(var j=0;j<ga_pageId.length;j++)
       {
        if(document.getElementById(ga_pageId[j]))
        {document.getElementById(ga_pageId[j]).style.display="none"}
      }

      for(var i=fromPage;i<=toPage; i++)
      {
       var pageId = 'PAGE_'+i;
       if(document.getElementById(pageId))
        document.getElementById(pageId).style.display="inline"; }
     }

      function previousPage(){var fromPageEle = document.getElementById("FromPage");var toPageEle = document.getElementById("ToPage");if(fromPageEle && toPageEle){fromPageEle.value = parseInt(fromPageEle.value) - 1;toPageEle.value =  parseInt(toPageEle.value) - 1;pageNavigate();}}

      function nextPage(){var fromPageEle = document.getElementById("FromPage");
      var toPageEle = document.getElementById("ToPage");
      if(fromPageEle && toPageEle){fromPageEle.value = parseInt(fromPageEle.value) + 1;toPageEle.value =  parseInt(toPageEle.value) + 1; pageNavigate();}}

      function pageOver(lv_this){
        if (lv_this.selected!='X')
        {  lv_this.style.backgroundColor = "#F7F7F7";  }
       }

      function pageOut(lv_this)
      {
       if (lv_this.selected!='X')
       {  lv_this.style.backgroundColor = "#FFF"; }
      }
  </script>

  <table id="Paginator" style="border:1px solid blue;"><tr><td > <input type="hidden" id="FromPage" value="1"/>
  <input type="hidden" id="ToPage" value="4"/> <ul>  
  <li onClick="previousPage()" id="PrevPage">Prev</li><script> ga_pageId.push('PAGE_1');</script>
  <li id="PAGE_1" onMouseOVer="pageOver(this)" onMouseOut="pageOut(this)"> 1 </li>
  <li id="PAGE_2" onMouseOVer="pageOver(this)" onMouseOut="pageOut(this)"> 2 </li>
  <li id="PAGE_3" onMouseOVer="pageOver(this)" onMouseOut="pageOut(this)">3</li>
  <li id="PAGE_4" onMouseOVer="pageOver(this)" onMouseOut="pageOut(this)">4</li>
  <li onClick="nextPage()" id="NextPage" style="display:none">Next</li>
   </ul>
    </td> </tr> 
  </table>
  <script> pageNavigate()</script>
  </nobr>

  </td>
 </tr>
</table>
</body>
</html>                                                                
  • 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-30T20:25:59+00:00Added an answer on May 30, 2026 at 8:25 pm

    Its better if you use Div tag rather then table.
    Use like this

    <Div style="float:left;width:20%"></Div>
    <Div style="float:left;width:80%"></Div>
    

    Write your desire code inside the div and give width according to your requirement.
    If you are designing a form which contain large amout of content then use table.

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

Sidebar

Related Questions

I have about 40000 records in that table that contains plain text and within
I have a table T which has a column C which contains text that
I have a big problem. I want to extract text from html table that
I have a table which has two text boxes and an image beside it
I have a text[] ARRAY column within a PostgreSQL table and I need to
I have a small 20-row table in my SQL08-R2 database that has an nvarchar(max)
In one of the ms-access table I work with we have a text field
I have a data table filled with text in each table row. How do
We have a full text index on a fairly large table of 633,569 records.
I have this input text: <html><head><meta http-equiv=content-type content=text/html; charset=utf-8></head><body><table cellspacing=0 cellpadding=0 border=0 align=center width=603>

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.