Jump to content

having a table always appear at top of screen


cliftonbazaar

Recommended Posts

I have a page made up of four tables; the first table is the header, always at the top of the screen; the other tables are under the header, one on the left, the center and the right.

 

Is there a way of allowing the header table and two side tables to always be on the screen when the page is scrolled up or down (to move with the page)?

 

James

Link to comment
Share on other sites

Hi Haku and thanks for the answer,

 

I have done what you have said but now I have a problem with the Main table;

css code is

#MainTable
{
  width:70%; margin-left:15%; margin-right:15%;
  vertical-align:center;
  position:fixed;
  top:75px;
  border:3px solid black
}

but this makes it that I can't scroll through this table, if I edit out "position:fixed;" the table then appears under the page heading :(

 

I only started to learn css about 6 hours so please be gentle with me :D

 

James

Link to comment
Share on other sites

Honestly, you are starting to get into intermediate techniques before you've figured out the begginer's ones. As they say, don't try to run before you know how to walk.

 

Spend some more time (and I mean more than 6 hours) learning how CSS works. Do a bunch of tutorials. THEN try to figure out how to do your own techniques. I'd spend another week or so playing with various tutorials first. Come back here then.

 

Also, you need to learn to not use tables (except for tabular data).

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.