SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: Columns in Rows

Hybrid View

  1. #1
    SitePoint Evangelist borna's Avatar
    Join Date
    Jun 2006
    Location
    Iran, Tehran
    Posts
    475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Columns in Rows

    What's wrong with this code? The first column and the others are not coming with each other. There is a difference! Thanks for any feedback.
    Code:
    <html >
    <head>
    <meta http-equiv="Content-Language" content="en-us">
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <meta name="keywords" content="TT03  Search Result">
    <meta name="description" content="TT03  Search Result">
    <script type="text/javascript">
    var timer
    function scrolltop()
    {
    document.getElementById('scrollmenu').style.top=document.body.scrollTop
    timer=setTimeout("scrolltop()",1)
    }
    function stoptimer()
    {
    clearTimeout(timer)
    }
    </script>
    
    </head>
    <body onload="scrolltop()" onunload="stoptimer()">				
    							
    <table><tr><td>
    <span id="scrollmenu" style="position:absolute">
    <div style="width:900px;background-color:#CCCCCC;border-bottom:-1px #000000 outset;">
    
    <table border="1" width="900" align="center">
    <tr bgcolor="#FF00CC">
    <td width="4"><b>No</b></td>
    <td width="2"><b>M </b></td>
    <td width="10"><b>MESC</b></td>
    <td width="2"><b>Unit</b></td>
    <td align=center width="50"><b>Description</b></td>
    </tr>
    </table>
    </div>
    </span>
    </td>
    
    <td>
    <span id="item">
    <div style="width:900px;background-color:#CCCCFF; border-bottom:1px #000000 outset;">
    <table border="1" width="900" align="center">
    <tr>
    <td width="4">1</td>
    <td width="2">BB</td>
    <td width="10">CC</td>
    <td width="5">DD</td>
    <td width="50"><textarea rows=1 name=description1 cols="10">DD</textarea></td>
    </tr>
    
    <tr>
    <td width="4">2</td>
    <td width="2">BB</td>
    <td width="10">CC</td>
    <td width="5">DD</td>
    <td width="50"><textarea rows=1 name=description cols="10">DD</textarea></td>
    </tr>
    
    <tr>
    <td width="4">3</td>
    <td width="2">BB</td>
    <td width="10">CC</td>
    <td width="5">DD</td>
    <td width="50"><textarea rows=1 name=description1 cols="10">DD</textarea></td>
    </tr>
    
    <tr>
    <td width="4">4</td>
    <td width="2">BB</td>
    <td width="10">CC</td>
    <td width="5">DD</td>
    <td width="50"><textarea rows=1 name=description cols="10">DD</textarea></td>
    </tr>
    <tr>
    <td width="4">AA</td>
    <td width="2">BB</td>
    <td width="10">CC</td>
    <td width="5">DD</td>
    <td width="50"><textarea rows=1 name=description1 cols="10">DD</textarea></td>
    </tr>
    
    <tr>
    <td width="4">AA</td>
    <td width="2">BB</td>
    <td width="10">CC</td>
    <td width="5">DD</td>
    <td width="50"><textarea rows=1 name=description cols="10">DD</textarea></td>
    </tr>
    <tr>
    <td width="4">AA</td>
    <td width="2">BB</td>
    <td width="10">CC</td>
    <td width="5">DD</td>
    <td width="50"><textarea rows=1 name=description1 cols="10">DD</textarea></td>
    </tr>
    
    <tr>
    <td width="4">AA</td>
    <td width="2">BB</td>
    <td width="10">CC</td>
    <td width="5">DD</td>
    <td width="50"><textarea rows=1 name=description cols="10">DD</textarea></td>
    </tr>
    <tr>
    <td width="4">AA</td>
    <td width="2">BB</td>
    <td width="10">CC</td>
    <td width="5">DD</td>
    <td width="50"><textarea rows=1 name=description1 cols="10">DD</textarea></td>
    </tr>
    
    <tr>
    <td width="4">AA</td>
    <td width="2">BB</td>
    <td width="10">CC</td>
    <td width="5">DD</td>
    <td width="50"><textarea rows=1 name=description cols="10">DD</textarea></td>
    </tr>
    <tr>
    <td width="4">AA</td>
    <td width="2">BB</td>
    <td width="10">CC</td>
    <td width="5">DD</td>
    <td width="50"><textarea rows=1 name=description1 cols="10">DD</textarea></td>
    </tr>
    
    <tr>
    <td width="4">AA</td>
    <td width="2">BB</td>
    <td width="10">CC</td>
    <td width="5">DD</td>
    <td width="50"><textarea rows=1 name=description cols="10">DD</textarea></td>
    </tr>
    <tr>
    <td width="4">AA</td>
    <td width="2">BB</td>
    <td width="10">CC</td>
    <td width="5">DD</td>
    <td width="50"><textarea rows=1 name=description1 cols="10">DD</textarea></td>
    </tr>
    
    <tr>
    <td width="4">AA</td>
    <td width="2">BB</td>
    <td width="10">CC</td>
    <td width="5">DD</td>
    <td width="50"><textarea rows=1 name=description cols="10">DD</textarea></td>
    </tr>
    <tr>
    <td width="4">AA</td>
    <td width="2">BB</td>
    <td width="10">CC</td>
    <td width="5">DD</td>
    <td width="50"><textarea rows=1 name=description1 cols="10">DD</textarea></td>
    </tr>
    
    <tr>
    <td width="4">AA</td>
    <td width="2">BB</td>
    <td width="10">CC</td>
    <td width="5">DD</td>
    <td width="50"><textarea rows=1 name=description cols="10">DD</textarea></td>
    </tr>
    <tr>
    <td width="4">AA</td>
    <td width="2">BB</td>
    <td width="10">CC</td>
    <td width="5">DD</td>
    <td width="50"><textarea rows=1 name=description1 cols="10">DD</textarea></td>
    </tr>
    
    <tr>
    <td width="4">AA</td>
    <td width="2">BB</td>
    <td width="10">CC</td>
    <td width="5">DD</td>
    <td width="50"><textarea rows=1 name=description cols="10">DD</textarea></td>
    </tr>
    <tr>
    <td width="4">AA</td>
    <td width="2">BB</td>
    <td width="10">CC</td>
    <td width="5">DD</td>
    <td width="50"><textarea rows=1 name=description1 cols="10">DD</textarea></td>
    </tr>
    
    <tr>
    <td width="4">AA</td>
    <td width="2">BB</td>
    <td width="10">CC</td>
    <td width="5">DD</td>
    <td width="50"><textarea rows=1 name=description cols="10">DD</textarea></td>
    </tr>
    <tr>
    <td width="4">AA</td>
    <td width="2">BB</td>
    <td width="10">CC</td>
    <td width="5">DD</td>
    <td width="50"><textarea rows=1 name=description1 cols="10">DD</textarea></td>
    </tr>
    
    <tr>
    <td width="4">AA</td>
    <td width="2">BB</td>
    <td width="10">CC</td>
    <td width="5">DD</td>
    <td width="50"><textarea rows=1 name=description cols="10">DD</textarea></td>
    </tr>
    <tr>
    <td width="4">AA</td>
    <td width="2">BB</td>
    <td width="10">CC</td>
    <td width="5">DD</td>
    <td width="50"><textarea rows=1 name=description1 cols="10">DD</textarea></td>
    </tr>
    
    <tr>
    <td width="4">AA</td>
    <td width="2">BB</td>
    <td width="10">CC</td>
    <td width="5">DD</td>
    <td width="50"><textarea rows=1 name=description cols="10">DD</textarea></td>
    </tr>
    <tr>
    <td width="4">AA</td>
    <td width="2">BB</td>
    <td width="10">CC</td>
    <td width="5">DD</td>
    <td width="50"><textarea rows=1 name=description1 cols="10">DD</textarea></td>
    </tr>
    
    <tr>
    <td width="4">AA</td>
    <td width="2">BB</td>
    <td width="10">CC</td>
    <td width="5">DD</td>
    <td width="50"><textarea rows=1 name=description cols="10">DD</textarea></td>
    </tr>
    <tr>
    <td width="4">AA</td>
    <td width="2">BB</td>
    <td width="10">CC</td>
    <td width="5">DD</td>
    <td width="50"><textarea rows=1 name=description1 cols="10">DD</textarea></td>
    </tr>
    
    <tr>
    <td width="4">AA</td>
    <td width="2">BB</td>
    <td width="10">CC</td>
    <td width="5">DD</td>
    <td width="50"><textarea rows=1 name=description cols="10">DD</textarea></td>
    </tr>
    <tr>
    <td width="4">AA</td>
    <td width="2">BB</td>
    <td width="10">CC</td>
    <td width="5">DD</td>
    <td width="50"><textarea rows=1 name=description1 cols="10">DD</textarea></td>
    </tr>
    
    <tr>
    <td width="4">AA</td>
    <td width="2">BB</td>
    <td width="10">CC</td>
    <td width="5">DD</td>
    <td width="50"><textarea rows=1 name=description cols="10">DD</textarea></td>
    </tr>
    <tr>
    <td width="4">AA</td>
    <td width="2">BB</td>
    <td width="10">CC</td>
    <td width="5">DD</td>
    <td width="50"><textarea rows=1 name=description1 cols="10">DD</textarea></td>
    </tr>
    
    <tr>
    <td width="4">AA</td>
    <td width="2">BB</td>
    <td width="10">CC</td>
    <td width="5">DD</td>
    <td width="50"><textarea rows=1 name=description cols="10">DD</textarea></td>
    </tr>
    <tr>
    <td width="4">AA</td>
    <td width="2">BB</td>
    <td width="10">CC</td>
    <td width="5">DD</td>
    <td width="50"><textarea rows=1 name=description1 cols="10">DD</textarea></td>
    </tr>
    
    <tr>
    <td width="4">AA</td>
    <td width="2">BB</td>
    <td width="10">CC</td>
    <td width="5">DD</td>
    <td width="50"><textarea rows=1 name=description cols="10">DD</textarea></td>
    </tr>
    <tr>
    <td width="4">AA</td>
    <td width="2">BB</td>
    <td width="10">CC</td>
    <td width="5">DD</td>
    <td width="50"><textarea rows=1 name=description1 cols="10">DD</textarea></td>
    </tr>
    
    <tr>
    <td width="4">AA</td>
    <td width="2">BB</td>
    <td width="10">CC</td>
    <td width="5">DD</td>
    <td width="50"><textarea rows=1 name=description cols="10">DD</textarea></td>
    </tr>
    <tr>
    <td width="4">AA</td>
    <td width="2">BB</td>
    <td width="10">CC</td>
    <td width="5">DD</td>
    <td width="50"><textarea rows=1 name=description1 cols="10">DD</textarea></td>
    </tr>
    
    <tr>
    <td width="4">AA</td>
    <td width="2">BB</td>
    <td width="10">CC</td>
    <td width="5">DD</td>
    <td width="50"><textarea rows=1 name=description cols="10">DD</textarea></td>
    </tr>
    <tr>
    <td width="4">AA</td>
    <td width="2">BB</td>
    <td width="10">CC</td>
    <td width="5">DD</td>
    <td width="50"><textarea rows=1 name=description1 cols="10">DD</textarea></td>
    </tr>
    
    <tr>
    <td width="4">AA</td>
    <td width="2">BB</td>
    <td width="10">CC</td>
    <td width="5">DD</td>
    <td width="50"><textarea rows=1 name=description cols="10">DD</textarea></td>
    </tr>
    <tr>
    <td width="4">AA</td>
    <td width="2">BB</td>
    <td width="10">CC</td>
    <td width="5">DD</td>
    <td width="50"><textarea rows=1 name=description1 cols="10">DD</textarea></td>
    </tr>
    
    <tr>
    <td width="4">AA</td>
    <td width="2">BB</td>
    <td width="10">CC</td>
    <td width="5">DD</td>
    <td width="50"><textarea rows=1 name=description cols="10">DD</textarea></td>
    </tr>
    <tr>
    <td width="4">AA</td>
    <td width="2">BB</td>
    <td width="10">CC</td>
    <td width="5">DD</td>
    <td width="50"><textarea rows=1 name=description1 cols="10">DD</textarea></td>
    </tr>
    
    <tr>
    <td width="4">AA</td>
    <td width="2">BB</td>
    <td width="10">CC</td>
    <td width="5">DD</td>
    <td width="50"><textarea rows=1 name=description cols="10">DD</textarea></td>
    </tr>
    <tr>
    <td width="4">AA</td>
    <td width="2">BB</td>
    <td width="10">CC</td>
    <td width="5">DD</td>
    <td width="50"><textarea rows=1 name=description1 cols="10">DD</textarea></td>
    </tr>
    
    <tr>
    <td width="4">AA</td>
    <td width="2">BB</td>
    <td width="10">CC</td>
    <td width="5">DD</td>
    <td width="50"><textarea rows=1 name=description cols="10">DD</textarea></td>
    </tr>
    <tr>
    <td width="4">AA</td>
    
    <td width="2">BB</td>
    <td width="10">CC</td>
    <td width="5">DD</td>
    <td width="50"><textarea rows=1 name=description1 cols="10">DD</textarea></td>
    </tr>
    
    <tr>
    <td width="4">AA</td>
    <td width="2">BB</td>
    <td width="10">CC</td>
    <td width="5">DD</td>
    <td width="50"><textarea rows=1 name=description cols="10">DD</textarea></td>
    </tr>
    <tr>
    <td width="4">AA</td>
    <td width="2">BB</td>
    <td width="10">CC</td>
    <td width="5">DD</td>
    <td width="50"><textarea rows=1 name=description1 cols="10">DD</textarea></td>
    </tr>
    
    <tr>
    <td width="4">AA</td>
    <td width="2">BB</td>
    <td width="10">CC</td>
    <td width="5">DD</td>
    <td width="50"><textarea rows=1 name=description cols="10">DD</textarea></td>
    </tr>
    <tr>
    <td width="4">AA</td>
    <td width="2">BB</td>
    <td width="10">CC</td>
    <td width="5">DD</td>
    <td width="50"><textarea rows=1 name=description1 cols="10">DD</textarea></td>
    </tr>
    
    <tr>
    <td width="4">AA</td>
    <td width="2">BB</td>
    <td width="10">CC</td>
    <td width="5">DD</td>
    <td width="50"><textarea rows=1 name=description cols="10">DD</textarea></td>
    </tr>
    <tr>
    <td width="4">AA</td>
    <td width="2">BB</td>
    <td width="10">CC</td>
    <td width="5">DD</td>
    <td width="50"><textarea rows=1 name=description1 cols="10">DD</textarea></td>
    </tr>
    
    <tr>
    <td width="4">AA</td>
    <td width="2">BB</td>
    <td width="10">CC</td>
    <td width="5">DD</td>
    <td width="50"><textarea rows=1 name=description cols="10">DD</textarea></td>
    </tr>
    <tr>
    <td width="4">AA</td>
    <td width="2">BB</td>
    <td width="10">CC</td>
    <td width="5">DD</td>
    <td width="50"><textarea rows=1 name=description1 cols="10">DD</textarea></td>
    </tr>
    
    <tr>
    <td width="4">AA</td>
    <td width="2">BB</td>
    <td width="10">CC</td>
    <td width="5">DD</td>
    <td width="50"><textarea rows=1 name=description cols="10">DD</textarea></td>
    </tr>
    <tr>
    <td width="4">AA</td>
    <td width="2">BB</td>
    <td width="10">CC</td>
    <td width="5">DD</td>
    <td width="50"><textarea rows=1 name=description1 cols="10">DD</textarea></td>
    </tr>
    
    <tr>
    <td width="4">AA</td>
    <td width="2">BB</td>
    <td width="10">CC</td>
    <td width="5">DD</td>
    <td width="50"><textarea rows=1 name=description cols="10">DD</textarea></td>
    </tr>
    <tr>
    <td width="4">AA</td>
    <td width="2">BB</td>
    <td width="10">CC</td>
    <td width="5">DD</td>
    <td width="50"><textarea rows=1 name=description1 cols="10">DD</textarea></td>
    </tr>
    
    <tr>
    <td width="4">AA</td>
    <td width="2">BB</td>
    <td width="10">CC</td>
    <td width="5">DD</td>
    <td width="50"><textarea rows=1 name=description cols="10">DD</textarea></td>
    </tr>
    <tr>
    <td width="4">AA</td>
    <td width="2">BB</td>
    <td width="10">CC</td>
    <td width="5">DD</td>
    <td width="50"><textarea rows=1 name=description1 cols="10">DD</textarea></td>
    </tr>
    
    <tr>
    <td width="4">AA</td>
    <td width="2">BB</td>
    <td width="10">CC</td>
    <td width="5">DD</td>
    <td width="50"><textarea rows=1 name=description cols="10">DD</textarea></td>
    </tr>
    <tr>
    <td width="4">AA</td>
    <td width="2">BB</td>
    <td width="10">CC</td>
    <td width="5">DD</td>
    <td width="50"><textarea rows=1 name=description1 cols="10">DD</textarea></td>
    </tr>
    
    <tr>
    <td width="4">AA</td>
    <td width="2">BB</td>
    <td width="10">CC</td>
    <td width="5">DD</td>
    <td width="50"><textarea rows=1 name=description cols="10">DD</textarea></td>
    </tr>
    <tr>
    <td width="4">AA</td>
    <td width="2">BB</td>
    <td width="10">CC</td>
    <td width="5">DD</td>
    <td width="50"><textarea rows=1 name=description1 cols="10">DD</textarea></td>
    </tr>
    
    <tr>
    <td width="4">AA</td>
    <td width="2">BB</td>
    <td width="10">CC</td>
    <td width="5">DD</td>
    <td width="50"><textarea rows=1 name=description cols="10">DD</textarea></td>
    </tr>
    <tr>
    <td width="4">AA</td>
    <td width="2">BB</td>
    <td width="10">CC</td>
    <td width="5">DD</td>
    <td width="50"><textarea rows=1 name=description1 cols="10">DD</textarea></td>
    </tr>
    
    <tr>
    <td width="4">AA</td>
    <td width="2">BB</td>
    <td width="10">CC</td>
    <td width="5">DD</td>
    <td width="50"><textarea rows=1 name=description cols="10">DD</textarea></td>
    </tr>
    
    	
    </table>
    </div>
    </span>
    </td></tr></table>
    
    																									
    </body>
    
    </html>
    -1/2=999?

  2. #2
    SitePoint Evangelist borna's Avatar
    Join Date
    Jun 2006
    Location
    Iran, Tehran
    Posts
    475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No reply yet!
    -1/2=999?

  3. #3
    SitePoint Evangelist borna's Avatar
    Join Date
    Jun 2006
    Location
    Iran, Tehran
    Posts
    475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    How to manage rows while we use a text area and a span and a div. Please reply!
    -1/2=999?

  4. #4
    SitePoint Evangelist borna's Avatar
    Join Date
    Jun 2006
    Location
    Iran, Tehran
    Posts
    475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What you normally do when you need to show the first row in your table whenever you do scrolling in the page!
    -1/2=999?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •