Jump to content

div tags


Twentyoneth

Recommended Posts

I have a slight problem, I have a table that is set to 100% width and 100%height, I need the div tag inside of it to be the same.

The table that is set to 100% width and 100% height, is in another table, so it has a set width and height, based upon the size of the window, but I need the div to have scrollbars.

This is the section of my code:
[code]<td vAlign='top' width='100%' height='100%' align='center' bgColor='#ffffff'>
    <div style='width: 100%; height: 100%; position: absolute; overflow: auto;'>[/code]

Any ideas on how to get the scroll bar to show up for only the size of the table it's in, instead of the size of the entire page, starting from where the table is placed?

This is what it does:

[code]+--------------------------------+
+--------------------------------+
+---+------------------------+---+
+---+------------------------+---+
+---+------------------------+---+
    +------------------------+
    +------------------------+[/code]
Link to comment
Share on other sites

You can't do this. Layers (div) work independant of tables or the rest of the page - kinda like floating over the top of the webpage, so they can't be contained inside the table. You will have to decide on a size smaller than the table and stick to it. [img src=\"style_emoticons/[#EMO_DIR#]/huh.gif\" style=\"vertical-align:middle\" emoid=\":huh:\" border=\"0\" alt=\"huh.gif\" /]
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.