Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / December 2007

Tip: Looking for answers? Try searching our database.

Table Scrolling Problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
A Question - 14 Dec 2007 15:33 GMT
Hi,

I have a table which I need to display within a div of a fixed width. The
length of the table exceeds the width of  the div which is ok as I can make
the div scrollable. The problem that I have is that the cells in the table
must be a fixed with because they need to co-incide with another table which
is going to be in another scrolling div below.

The problem is if I restrict the with of the containing div to something
less than the with of the table. The table  then attempts to crunch the
table width to the least width and thus reduces the table cell widths and
ignores the fixes widht size applied tot he style.

How can I get around this.
George Ter-Saakov - 14 Dec 2007 16:23 GMT
the simple solution would be to
1. create transparent.gif  with size 1x1 pixel
2. To the headers of columns add <img src="transparent.gif" width=100
height=1>

This will keep your columns to be at least 100 pixels.

PS: There might be easier solutions with CSS. Mine is just a suggestion and
will work with any browser.

George.

> Hi,
>
[quoted text clipped - 10 lines]
>
> How can I get around this.
Just Me - 15 Dec 2007 18:14 GMT
Hi, yes, its a possibility. I have also found that fixing the width of the
table acheives the same thing.  Thanks for your help.

> the simple solution would be to
> 1. create transparent.gif  with size 1x1 pixel
[quoted text clipped - 22 lines]
>>
>> How can I get around this.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.