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
https://forums.phpfreaks.com/topic/9753-div-tags/
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
https://forums.phpfreaks.com/topic/9753-div-tags/#findComment-36152
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.