programmer1025
programmer1025

Reputation: 1

How do I put my table in the top right-hand corner of my screen?(I am in html)

I want to put an some animation on my screen so I got a really cool idea and the programmed it. I have it ready and now I put it in a table(i really love tables) to create a "bordered" effect. It now sits in the bottom corner of my screen. i have used align="right" and gotten this far. Vertical-align or valign="top" are not doing anything. Can you help?

Upvotes: 0

Views: 3155

Answers (1)

matthias_h
matthias_h

Reputation: 11416

Not knowing the actual markup, e.g. possible containers like a div where the table is located, one approach can be using absolute positioning (just using the selector table as example, better use a class):

table
{
  position:absolute;
  top:0;
  right:0; 
}

Fiddle

To display the table to the right, you can use float:

table
{
  float:right;
}

Fiddle
but question because of missing markup / CSS in the OP is, why the table is currently displayed at the bottom. In case this is a misunderstanding and it's not the table that you want to position, but content in a tablecell - <td> - you can consider to update this in your question to avoid confusion.

Upvotes: 1

Related Questions