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 someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is 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:
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2007-08-20 - TommyMartin
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.