• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 513
  • Last Modified:

How do i stick the html table at the top corner of the page ?

The html table should stick to the right horizantally and to the top vertically,without any gap.How can i do that ?
0
amhicraig
Asked:
amhicraig
2 Solutions
 
rbudjCommented:
<body marginheight="0" marginwidth="0" topmargin="0" bottommargin="0">
0
 
yossi_intlockCommented:
if you want only the table to stick to the top <table style="position:absolute; top:0px; ">...</table>

now: to align it to the right in case when your table width is less than the page screen width  and the page direction is left to right:inset it into a div and set the style on the div like that:
<div style="top:0px; position:absolute;" align="right"  width="100%"><table>...</table></div>

if your page direction is right to left that the first example will do the job.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now