+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    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>

  2. #2
    Ultimate 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

  3. #3
    Member
    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.

  4. #4
    Member
    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

  1. Buffer Overflow w/ Javascript
    By PyroSama in forum General Tech Discussion
    Replies: 0
    Last Post: May 17th, 2005, 02:59 AM
  2. CSS DIV Problems
    By Cyberlore in forum Webmastering and Programming
    Replies: 0
    Last Post: March 6th, 2004, 03:49 AM
  3. Overflow error in half-life
    By FreakyOCR in forum Technical Support
    Replies: 13
    Last Post: February 16th, 2002, 08:36 AM
  4. Buffer Overflow security threat
    By SysRq in forum Webmastering and Programming
    Replies: 0
    Last Post: January 26th, 2002, 11:35 PM

Tags for this Thread

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Recommended Sites: ResellerRatings Store Reviews