Posted: Wed May 07, 2008 12:03 am Table with Vertical Scrollbar
I wanted to have the scrollbar in my table inside my web page instead of extending the page making it longer when I have plenty of text...
This is what I have at the moment:
Joined: 14 Apr 2008 Posts: 182 Location: Nord Italy
Posted: Wed May 07, 2008 12:55 am <div style="overflow: [i]scroll/auto/hidden[/i];&quo
You can not with TABLE Element, You do can with DIV
<div style="overflow: scroll/auto/hidden;"></div>
scroll always prints both the vertical and the horizontal scroll-bars
auto makes one or the others or both to appear as soon as content grows;
hidden always prevent both scroll-bars from appearing.
DIV can either contain a TABLE (as code below) and be contained in a TD table-cell.
If DIV inside a table at whichsoever level of the document, HEIGHT You want to assign to a <div style="overflow: ;"> gets fooled if given in % percentuage; still works fine in pixel, instead.
With DIV beeing just contained in BODY Element directly, this issue does not occur.
Process this:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#777770" text="#ffffff">
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum