Thread: div overflow in firefox
-
October 12th, 2006, 08:12 PM #1Member
- Join Date
- Oct 2003
- Posts
- 267
div overflow in firefox
i everyone. I am developing a web site. (ASP.NET 1.1) VB server side code and some javascript...Using mySQL as my backend. I have a page where i use a panel and get data and build a table...i have the overflow on the panel to overflow so that scroll bars will be displayed if needed.
In Ie it works perfectly...
in firefox the scroll bars are there but displayed. I added a million records and no scroll bar is every enabled sooo something with firefox.
Both the panel and table are dynamic server side...
i set the overflow in the code to:
Me.pnlRoster.Style.Add("overflow", "scroll")
HTML outputted is below...I use a header and left navigation user controls...
Anyone come across this problem? Or can figure out from the html below what is wrong...i can send you the link if you think it will help...
thanks in advance.
<div id="pnlRoster" nowrap="nowrap" style="border-style:None;height:100%;overflow:scroll;">
<table id="tblRoster" border="0" style="width:100%;">
<tr style="background-color:Red;border-width:1px;border-style:Solid;">
<td nowrap="nowrap" style="color:White;">#</td><td nowrap="nowrap" style="color:White;">Name</td><td nowrap="nowrap" style="color:White;">Position</td><td nowrap="nowrap" style="color:White;">Height</td><td nowrap="nowrap" style="color:White;">Weight</td><td nowrap="nowrap" style="color:White;">Hometown</td>
-
October 12th, 2006, 09:01 PM #2Ultimate Member
- Join Date
- Dec 2004
- Posts
- 1,558
The code is fine, and it works properly in Firefox for me. My guess would be you have other invalid code somewhere in your output.
"Be quiet, Brain, or I'll stab you with a Q-tip"
-Homer Simpson
-
October 12th, 2006, 09:51 PM #3Member
- Join Date
- Oct 2003
- Posts
- 267
code
can you post the code you are using?? i basically did a simple example and the result is the same in firefox...i can't get it to work.
I took out all the variables and the same result.
-
October 13th, 2006, 11:02 PM #4Member
- Join Date
- Oct 2003
- Posts
- 267
figured it out
in case this helps anyone...do not set the div layer to 100% that basically says expand until all the records are posted...instead use absolute position and size
example:
<td align="left"><div id="pnlRoster" style="Z-INDEX: 101;OVERFLOW: auto;WIDTH: 575px;POSITION: absolute;TOP: 245px;HEIGHT: 490px"
ms_positioning="FlowLayout">
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Buffer Overflow w/ Javascript
By PyroSama in forum General Tech DiscussionReplies: 0Last Post: May 17th, 2005, 02:59 AM -
CSS DIV Problems
By Cyberlore in forum Webmastering and ProgrammingReplies: 0Last Post: March 6th, 2004, 03:49 AM -
Overflow error in half-life
By FreakyOCR in forum Technical SupportReplies: 13Last Post: February 16th, 2002, 08:36 AM -
Buffer Overflow security threat
By SysRq in forum Webmastering and ProgrammingReplies: 0Last Post: January 26th, 2002, 11:35 PM



LinkBack URL
About LinkBacks



Reply With Quote

The fan vote went to miss popularity Danica Patrick instead of a driver with a real chance at winning.
Is It Just Me? v233893843