Tags:
create new tag
, view all tags

Question

Hi,

I am having problem with scrollbars. I am trying to create a pretty big table in a topic.

If i just create the table normally

  • In Fire Fox, its works prefectly, having the horizontal bar for overflowing table.

  • But in IE 6, it doesn't shows a horizontal bar for the overflowing table.

Strangely if you add <tr> before the table...which i accidentally added

  • In IE 6, it will show the table perfectly with a horizontal scroll bar for overflowing table.

  • But on contrary, on Fire Fox, everything works fine except the table will be shown much further down there leaving a big blank in the top of table

e.g using FireFox as Browser

if not using <tr> in Fire Fox


My topic
A B
1 2

if using in Fire Fox, say i put the <tr> before the |A|B|


My topic



A B
1 2

Currently i am using NatSkin, so i am just wondering is there a way to make the table having horizontal scrollbar for both browser without having some strange view wink

Thanks Tommy

Environment

TWiki version: TWikiRelease04x01x02
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: UNIX
Web server: Apache
Perl version: Active Perl 5.6
Client OS: Window XP
Web Browser: IE 6, FireFox 2
Categories: Browser Issue

-- TommyMartin - 16 Aug 2007

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

Found the solution, just add some script,

<SCRIPT LANGUAGE = "JavaScript">
<!-- 
var browser     = '';
var version     = '';
var entrance    = '';
var cond        = '';
// BROWSER?
if (browser == ''){
if (navigator.appName.indexOf('Microsoft') != -1)
browser = 'IE'

}
if (version == ''){
version= navigator.appVersion;
paren = version.indexOf('(');
whole_version = navigator.appVersion.substring(0,paren-1);
version         = parseInt(whole_version);
}
if (browser == 'IE' && version >= 4) document.write('<tr>');
// -->
</SCRIPT>
Not the best solutions probably,but it surely works

-- TommyMartin - 20 Aug 2007

-- TommyMartin - 20 Aug 2007

 
Change status to:
Topic revision: r2 - 2007-08-20 - TommyMartin
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.