Click here to Skip to main content
15,889,339 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Dear Mentors,

I am stuck somewhere while designing my Webform.I am using HTML tables and i want to make one row of the table as ALWAYS VISIBLE. I am able to do it using divs but i want to apply the same on the table row.

Please suggest.
Posted
Comments
Sergey Alexandrovich Kryukov 24-Jan-13 2:57am    
It's good idea to have such thing, so I voted 4 for the question, but of course not 5, because it would take you few seconds to find out by yourself...

—SA
gouravkaila 24-Jan-13 3:22am    
:D.... m trying will post it soon...
Sergey Alexandrovich Kryukov 24-Jan-13 3:28am    
Post what? I answered, please accept my answer formally (green button), as it answers your question exactly.
Agree?
—SA
gouravkaila 25-Jan-13 1:41am    
Sure.. :)...newaz thanks a lot for the wonderful and quick revert.
Sergey Alexandrovich Kryukov 25-Jan-13 9:30am    
You are very welcome.
Good luck, call again.
—SA

 
Share this answer
 
XML
Use that row under ‘thead’ tag. Thead tag is used for giving heading to the table. So when you scroll your table, heading part remains visible always.

Like :-

<table>
<thead>
<tr><td>name</td>   <td>id</td></tr>
</thead>
<tr><td>ram</td> <td>2</td></tr>
</table>

Rest upon you how you design using css.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900