Solved

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

Posted on 2007-11-20
2
503 Views
Last Modified: 2013-11-19
The html table should stick to the right horizantally and to the top vertically,without any gap.How can i do that ?
0
Comment
Question by:amhicraig
2 Comments
 
LVL 16

Accepted Solution

by:
rbudj earned 65 total points
ID: 20324568
<body marginheight="0" marginwidth="0" topmargin="0" bottommargin="0">
0
 
LVL 2

Assisted Solution

by:yossi_intlock
yossi_intlock earned 60 total points
ID: 20324697
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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now