• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

Scroll table within a table not working

 
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have the following code for scrollbars (horizontal and vertical) inside a table not working.. If I remove the outer table the scroll table is fitting in side the window.. Please advise how to make this work with table inside a scroll table.

Thanks
Satya

 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
your css rules are too generic

Eric
 
satya mamillapalli
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Eric Pascarello wrote:your css rules are too generic

Eric



I was just giving an example.. When I remove the outer table , The scrollbars are coming up fine hoirizontally and vertically

But If I keep the outer table, Horizontal scroll is not coming..

Thnaks
Satya
 
Eric Pascarello
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
width of 100% normally does not produce scrollbars. You need a fixed width.

Eric
 
satya mamillapalli
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Eric Pascarello wrote:width of 100% normally does not produce scrollbars. You need a fixed width.

Eric



I was wondering why the Height 100% works fine whereas width 100% does not work..

If I give width in Pixels , the scrollbars are coming fine.. BUT I have an issue because I can only make it look for one specific resolution... I am trying to get the both horizontal and scrollbar inside the table for all resolutions..

Can someone please advise on how to get both scrollbars inside a table taht works for all resolutions..


Thnaks
Satya

 
Eric Pascarello
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
add style="zoom:1"
to the div and the td that holds the div.

Eric
 
satya mamillapalli
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Eric Pascarello wrote:add style="zoom:1"
to the div and the td that holds the div.

Eric



Eric

Tried the same and still same effect.. Please see the code below.. Please advise

I am testing this in IE8.

Thanks
Satya




I have another example code. It is also same..

 
satya mamillapalli
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Finally it worked..

width 100% still works.. need not be fixed


Thnaks
Satya
 
You didn't tell me he was so big. Unlike this tiny ad:
professionally read, modify and write PDF files from Java
https://products.aspose.com/pdf/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!