473,383 Members | 1,866 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

How to scroll the content of cells in a table?

Hello,

I have the following problem:

I have a table on my homepage which has two cells. One cell left which
has the menu in it and one on the right where I display the content.
This table has an height of 100% and an width of 100%. As soon as the
content of one cell is too big for the table I want the browser to
show a scrollbar in this cell. I'm sure that this is possible with CSS
(overflow:auto?), but I couldn't find the solution so far.

Thank you very much in advance

Manuel
Jul 20 '05 #1
8 5104
Manuel Reimer wrote:
Hello,

I have the following problem:

I have a table on my homepage which has two cells. One cell left which
has the menu in it and one on the right where I display the content.
This table has an height of 100% and an width of 100%. As soon as the
content of one cell is too big for the table I want the browser to
show a scrollbar in this cell. I'm sure that this is possible with CSS
(overflow:auto?), but I couldn't find the solution so far.


That problem is called table-layout. You might want to switch to CSS.
Instead of two cells, you'd have something like two div's with
different classes ("menu" and "content"). Yes, you can then assign
"overflow: scroll;" and "height: [something]" to the content-div. This
should also work if you put the div in the table-cell, by the way. And
don't test with NN4x!
Jul 20 '05 #2
Philipp Lenssen schrieb:
That problem is called table-layout. You might want to switch to CSS.
Instead of two cells, you'd have something like two div's with
different classes ("menu" and "content"). Yes, you can then assign
"overflow: scroll;" and "height: [something]" to the content-div.
I'll try to do this. So far I couldn't find good information on how to
do this
This
should also work if you put the div in the table-cell, by the way. And
don't test with NN4x!


I think this doesn't work (I tried this several times).

CU

Manuel

Jul 20 '05 #3
On 7 Nov 2003 00:18:14 -0800, in comp.infosystems.www.authoring.html,
Manuel Reimer wrote:
I have a table on my homepage which has two cells. One cell left which
has the menu in it and one on the right where I display the content.
This table has an height of 100% and an width of 100%. As soon as the
content of one cell is too big for the table I want the browser to
show a scrollbar in this cell. I'm sure that this is possible with CSS
(overflow:auto?), but I couldn't find the solution so far.


That sounds like the same rendering frames would do.

Why don't you use frames ?

--
++++++++ Zelda, Dragon Ball, Mana and my (art)work at www.salagir.com ++++++++
<FyNXeR> Pardon my spelling... but I'm from Sweden
<sumbody> pardon my accent, i am from southeast asia
<DrMonkey> pardon my shotgun, i'm from west virginia
Jul 20 '05 #4
Salagir schrieb:
That sounds like the same rendering frames would do.
Exactly. So far my page is with frames.
Why don't you use frames ?


- <http://www.jmk.su.se/global99/anna/blind/> (search for "frames" on
that page)
- Search-Engines have problems with frames
- I need two pages for each content I want to display (one frameset and
one page for the content) if I want to make it possible to the user to
bookmark each page. So I have many framesets on my webserver whith only
load a "*_framesource.html" and my "menu.html". This is really difficult
to maintain.

CU

Manuel

Jul 20 '05 #5
On Fri, 7 Nov 2003, Salagir wrote:
Why don't you use frames ?


Where have you been, these past few years?

Netscape stopped using frames on their own main web pages quite soon
after they'd implemented frames[1] in their browser, and that was a
very long time ago now in web terms. There has to be some kind of
message in that.

sigh.

[1] and plonked down their design as a done deal at the W3C, deaf to
all the reactions they got.
Jul 20 '05 #6
Manuel Reimer <mr*****@despammed.com> wrote:
- Search-Engines have problems with frames


The different number of hits
<http://www.google.com/search?q=%22This+Page+Uses+Frames%22>
<http://altavista.com/web/results?q=%22This+Page+Uses+Frames%22&kgs=0&kls=0>
is quite astonishing.
Jul 20 '05 #7
I wrote:
The different number of hits
<http://www.google.com/search?q=%22This+Page+Uses+Frames%22>
<http://altavista.com/web/results?q=%22This+Page+Uses+Frames%22&kgs=0&kls=0>
is quite astonishing.


No, it isn't. AltaVista's search is case-sensitive:
<http://altavista.com/web/results?q=%22this+page+uses+frames%22&kgs=0&kls=0>
Sorry.
Jul 20 '05 #8
Hello,

I tried to fix this problem with an "<div>" in the cell. This works nice
as long as I set height to an pixel-value. As soon as I try to set it to
100% this stops to work. Which height-value do I have to set to get the
div to have the same height as the table?

Thanks

Manuel
--
Against-TCPA
Don't let them take YOUR RIGHTS!
www.againsttcpa.com

Jul 20 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Bill Sonia | last post by:
It seems whenever I set a DataGrid.DataSource = DataTable (vb.net) to populate a datagrid, the scroll bars on the datagrid default to disabled. And the only way I can get them to enable is to...
1
by: Jonathan | last post by:
I'm trying to build a scrollable div with "up" and "down" buttons to replicate the action of a scroll bar. The reason I'm not just using "overflow:auto" is because I want to position the scroll...
1
by: cotton_gear | last post by:
Hello, Fiest of all let me thank this group for so quick in responding to any postings. I am using a javascript based utility from a site to sort the columns of the table. But, for some strange...
2
by: Merlin | last post by:
Hi there, I do have a complex problem and wonder if this is possible to solve. Following situation. I do have a page, where you do have a frame inside that page. That frame holds different...
7
by: leiño | last post by:
Hi, i am adding table rows dynamically with javascript. This works fine. The table is inside a div with scrolls, initially with 6 rows: ..... <div style='overflow:auto; width:100%;...
1
by: amuven | last post by:
Hi All, I need to put a horizontal scroll bar for 4 cells alone where my first cell in table should not contain any horizontal scroll bar . In clear, let us say there are 5 columns in my...
1
by: crazy works | last post by:
hello guys, i have problem in the scroll bar on my css code , i am trying to use that css menu from that link http://www.cssplay.co.uk/menus/slide_fly.html it actually works very good but i want...
3
by: PrabodhanP | last post by:
I have CSS based mouseover scrolling for divContent embeded in my webpage.It works fine in IE,but not working in mozilla-FF. It is located at the location.....
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.