Use of "overflow:auto" in a div vs a table

Pest is back.
I am building pages where there are potentially VERY long tables, and I only want them to take up "X"px of vertical space.
Using a <div> to surround  the table, adjusting the height and width of the <div> to whatever I want has been VERY successful -
no problems, can use it anywhere, feel comfortable.
Recently, I've learned from this forum that <div>s should only be used when really necessary,
and I've been able to get rid of many of my <div>s - except on tables that scroll.
Recently did an experiment with a <div> around a LOOOOONG table - worked fine.
Then I removed the <div> and added the "overflow:auto" to the table style with various
table heights selected.
I've done the experiment with and without "table-layout:fixed" - no luck.
Here's the <style> portion:
table.scrolltable {
    table-layout:fixed;
    height:100px;
     width:640px;
    border:2px solid #000;
    cellpadding:1;
    background-color:#DCF1F8;
    margin-left:1%;
    margin-right:1%;
    overflow:auto;}
table.scrolltable td {
     text-align:center;
    border:1px black solid;
Questions:
1. Is it possible to effectively use "overflow:auto" directly on a <table> layout?
2. If yes, what should I change in the above style?
And again, I thank you in advance.

"Division-itis (excessive overuse of divs for every element) should be avoided. But Jon is right, divisions are a basic and necessary part of HTML. You must use them.
Vertical Scrolling Table (this is how I do it)
http://alt-web.com/DEMOS/vertical-scrolling-table.shtml
Nancy O."
I think I'm getting a better feel for <div>s.
Thank you VERY VERY much for your "trade secret" on the scrolling table.
I've put it together and it works great!
Super!
Thanks!
PS - And the other teaching point is the "overflow-y" - more to study! Thanks again

Similar Messages

  • Overflow:auto is not working in IE

    I am not sure. is this the right place to ask but I am struggling with one issue. I.e. I have put this code inside
    region header
    <div style = "width:auto; height:auto; overflow: auto; max-height:170;">
    and in region footer
    </div>
    which is working fine in Mozilla but not showing up scroll bar in IE.
    Any help is appriciated. Thank you.

    Maybe this helps:
    http://blog.josh420.com/archives/2007/11/fixing-the-ie-overflow-vertical-scrollbar-bug.aspx
    http://stackoverflow.com/questions/139000/div-with-overflowauto-and-a-100-wide-table-problem
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Why Can't I Add Overflow, Auto

    Each time I try to add "Overflow, Auto" to Div 4 in the following code, it picks up the bottom three Div's, 5, 6, & 7. Can I not do this? I wanted to have it so sometimes I can add information larger than 500px in height. See code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>master</title>
    <style type="text/css">
    <!--
    body {
    background-image: url(images/gold.gif);
    background-repeat: repeat;
    #apDiv1 {
    position:relative;
    width:800px;
    height:800px;
    z-index:1;
    margin-right: auto;
    margin-left: auto;
    border: 5px solid #804006;
    left: 0px;
    top: 0px;
    #apDiv2 {
    position:relative;
    width:800px;
    height:50px;
    z-index:1;
    background-color: #A5986F;
    margin-right: auto;
    margin-left: auto;
    top: 0px;
    left: 0px;
    #apDiv3 {
    position:absolute;
    width:800px;
    height:40px;
    z-index:1;
    background-color: #CCFFCC;
    left: 0px;
    top: 50px;
    #apDiv4 {
    position:absolute;
    width:800px;
    height:500px;
    z-index:1;
    background-color: #CC99CC;
    top: 40px;
    #apDiv5 {
    position:absolute;
    width:400px;
    height:210px;
    z-index:1;
    background-color: #A5986F;
    top: 500px;
    #apDiv6 {
    position:absolute;
    width:400px;
    height:140px;
    z-index:1;
    background-color: #A59000;
    top: 0px;
    left: 400px;
    #apDiv7 {
    position:absolute;
    width:400px;
    height:70px;
    z-index:1;
    background-color: #99CC00;
    top: 140px;
    left: 0px;
    -->
    </style>
    <script type="text/javascript">
    <!--
    function MM_reloadPage(init) {  //reloads the window if Nav4 resized
      if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
        document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
      else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
    MM_reloadPage(true);
    //-->
    </script>
    </head>
    <body>
    <div align="center">
      <div id="apDiv1">
        <div id="apDiv2">
          <div id="apDiv3">
            <div id="apDiv4">
              <div id="apDiv5">
                <div id="apDiv6">
                  <div id="apDiv7"></div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    </body>
    </html>

    I'm not sure I understand your page...you have all your APdivs totally nested one within the other.
    Unless you have a good reason to do this nesting, that is what is throwing you off. Because you had styled APdiv4 to be height: 500px, when you made overflow: auto;, the page immediately sensed that you had more than 500px in height (adding in the heights of the other nested divs).
    I recommend you recode your APdivs to be relative divs...they will be much more cooperative.
    Here's a quick and dirty attempt (bold is additions or commented code):
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>master</title>
    <style type="text/css">
    <!--
    body {
    background-image: url(images/gold.gif);
    background-repeat: repeat;
    #apDiv1 {
    position:relative;
    width:800px;
    height:800px;
    z-index:1;
    margin-right: auto;
    margin-left: auto;
    border: 5px solid #804006;
    left: 0px;
    top: 0px;
    #apDiv2 {
    position:relative;
    width:800px;
    height:50px;
    z-index:1;
    background-color: #A5986F;
    margin-right: auto;
    margin-left: auto;
    /*top: 0px;
    left: 0px;
    #apDiv3 {
    /*position:absolute;*/
    position: relative;
    width:800px;
    height:40px;
    z-index:1;
    background-color: #CCFFCC;
    /*left: 0px;
    /*top: 50px;
    #apDiv4 {
    /*position:absolute;*/
    position: relative;
    width:800px;
    height:500px;
    overflow: auto;
    z-index:1;
    background-color: #CC99CC;
    /*top: 40px;
    #apDiv5 {
    /*position:absolute;*/
    position: relative;
    width:400px;
    height:210px;
    float: left;
    z-index:1;
    background-color: #A5986F;
    /*top: 500px;
    #apDiv6 {
    /*position:absolute;*/
    position: relative;
    width:400px;
    height:140px;
    float: left;
    z-index:1;
    background-color: #A59000;
    /*top: 0px;
    left: 400px;
    #apDiv7 {
    /*position:absolute;*/
    position: relative;
    width:400px;
    height:70px;
    float: left;
    z-index:1;
    background-color: #99CC00;
    /*top: 140px;
    /*left: 0px;
    -->
    </style>
    <script type="text/javascript">
    <!--
    function MM_reloadPage(init) {  //reloads the window if Nav4 resized
      if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
        document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
      else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
    MM_reloadPage(true);
    //-->
    </script>
    </head>
    <body>
    <div align="center">
      <div id="apDiv1">
        <div id="apDiv2">this is 2</div>
          <div id="apDiv3">this is 3</div>
            <div id="apDiv4">this is 4</div>
              <div id="apDiv5">this is 5</div>
                <div id="apDiv6">this is 6</div>
                  <div id="apDiv7">this is 7</div>
      </div>
    </div>
    </body>
    </html>
    I have commented out some of your CSS and added some (you will recognize what is new). Notice that I have also closed every div after restyling them as Relative and some of them as Floating divs.
    Beth

  • When I add Overflow:auto;

    Hello,
    I am having a problem when viewing my file in DW Design View.
    When I view the webpage in a browser everything look fine. The
    error happens when i view the file in DW Design view. When I add
    the line overflow:auto; to my container2 div that is when it breaks
    my DW Design View. My width of my page gets extremely long. It
    looks to me that my entire container2 div doesn't clear my
    container div and gets put up right next to my container div (which
    is the max width that I want).
    Below is my html and css code.
    HTML Code
    <body>
    <div id="container">Container Stuff</div>
    <div id="container2">
    <div id="rightside">Rightside Stuff</div>
    <div id="leftside">Leftside Stuff</div>
    </div>
    <div id="footer">Footer Stuff</div>
    </body>
    CSS Code
    body {
    margin: 0 auto;
    width:773px;
    background-repeat:repeat-y;
    background-color:#ECD5A4;
    #container {
    background:#CC9900;
    height:100px;
    width:773px;
    position:relative;
    border-bottom: 1px solid black;
    float:left;
    margin-top:10px;
    #container2 {
    clear:both;
    border:1px solid black;
    background-color:#FAF3DC;
    overflow:auto;
    #rightside {
    float:right;
    width:170px;
    background:#6B600A;
    margin: 2px 4px 2px 0;
    background-color:#759EB3;
    #leftside {
    width:586px;
    float:left;
    margin: 2px 5px 0 2px;
    border:1px solid black;
    background-color:#F5DBB4;
    padding-left:2px;
    #footer {
    clear:both;
    float:right;
    font-size:12px;
    Thanks for any help!

    Suggestion: Ignore the eccentricities of design view and work
    in code view.
    You cannot lose until you give up !!!
    "esuweb" <[email protected]> wrote in
    message
    news:f22n45$p4e$[email protected]..
    > Hello,
    > I am having a problem when viewing my file in DW Design
    View. When I view
    > the
    > webpage in a browser everything look fine. The error
    happens when i view
    > the
    > file in DW Design view. When I add the line
    overflow:auto; to my
    > container2
    > div that is when it breaks my DW Design View. My width
    of my page gets
    > extremely long. It looks to me that my entire container2
    div doesn't
    > clear my
    > container div and gets put up right next to my container
    div (which is the
    > max
    > width that I want).
    >
    > Below is my html and css code.
    >
    > HTML Code
    >
    > <body>
    > <div id="container">Container Stuff</div>
    >
    > <div id="container2">
    > <div id="rightside">Rightside Stuff</div>
    > <div id="leftside">Leftside Stuff</div>
    > </div>
    >
    > <div id="footer">Footer Stuff</div>
    > </body>
    >
    > ////////////////////////
    >
    > CSS Code
    >
    > body {
    > margin: 0 auto;
    > width:773px;
    > background-repeat:repeat-y;
    > background-color:#ECD5A4;
    > }
    >
    > #container {
    > background:#CC9900;
    > height:100px;
    > width:773px;
    > position:relative;
    > border-bottom: 1px solid black;
    > float:left;
    > margin-top:10px;
    > }
    >
    > #container2 {
    > clear:both;
    > border:1px solid black;
    > background-color:#FAF3DC;
    > overflow:auto;
    > }
    >
    > #rightside {
    > float:right;
    > width:170px;
    > background:#6B600A;
    > margin: 2px 4px 2px 0;
    > background-color:#759EB3;
    > }
    >
    > #leftside {
    > width:586px;
    > float:left;
    > margin: 2px 5px 0 2px;
    > border:1px solid black;
    > background-color:#F5DBB4;
    > padding-left:2px;
    > }
    >
    > #footer {
    > clear:both;
    > float:right;
    > font-size:12px;
    > }
    >
    > Thanks for any help!
    >

  • How to use PPF customizing Auto GR after packing

    Our Goods Receive Business scenario is
    1. Filled Batch in EWM Inbound Delivery           
    2. Manual Pack product to Handling unit
    3. After packing, Automatic Good Receive
    4. Then create Warehouse Task automatically .
    Question
    We want to know how to use PPF customizing Auto GR after we Pack product to Handling unit?
    Can anyone help us to figure out that problem?
    Thank you
    Chang

    Hi Faical,
    I have set configuration as below, but it does'nt work.
    Can you help us to figure out the reason.
    We are appreciate your help!
    2. Manual Pack product to Handling unit
    3. After packing, Automatic Good Receive
    method: /SCWM/AU_GR_POST in processing details and for schedule condition:  /SCWM/WHR_FULL_PACKED. 
    time of processing : processing when save document
    3.After packing, Automatic Good Receive
    4. Then create Warehouse Task automatically
    method: /SCWM/AU_GR_POST in processing details and for schedule condition: /SCWM/TO_CREATE
    time of processing : immediate processing

  • Freeze header row using over overflow container

    hi All,
    I have an issue with my header in the gridlayout element, we are using the overflowcontainer element.
    When there is a scroll bar and user scrolls, the header also scrolls, we want to just scroll the line items and the header should be frozen,
    any suggestion please ?

    Hi Friend,
    You can achieve your requirement by using xhtmlb overflow container.Check the below link.
    [link|Freeze header in BSP page which is using Grid Layout]
    With Regards,
    SHARMILA BRINDHA.M

  • Flash plugin use PAC (Proxy Auto Config)?

    Hi,
    I know the flash plugin uses the browser proxy settings.
    But is this still true if the browser is set to use PAC
    (proxy auto congifuration) files to do proxy settings?
    Thanks,
    Felix

    You might check these links out. I am seeing the same issue
    and think the links provide some insight to the problem.
    http://bugs.adobe.com/jira/browse/FP-519
    http://bugs.adobe.com/jira/browse/FP-673

  • DIV's or Table's

    I'm in the middle of redesigning a site that happens to use a
    lot of tables. My question to you is, is it better to use DIV's or
    Table's? I could be wrong but from my understanding, I have a lot
    more functionality with DIV's due to them being able to float
    anywhere on a page, much like a layer.

    Do you ALWAYS follow web standards...I doubt it.
    I think it's a little harsh to say "If web standards mean
    little or nothing
    to you,...."
    "Shane H" <[email protected]> wrote in
    message
    news:ev3srb$ies$[email protected]..
    > If web standards mean little or nothing to you, then you
    can use a table
    > for a layout. IMHO, this isn't the best practice, when
    using a strictly
    > CSS-based layout can give you the same results, as well
    as complying to
    > web standards (e.g., seperating structure from content.)
    >
    > --
    > Shane H
    > [email protected]
    >
    http://www.avenuedesigners.com
    >
    > =============================================
    > Back for 2007, close-up magic:
    >
    http://deceptivemagic.com
    >
    > Web dev articles, photography, and more:
    >
    http://sourtea.com
    > =============================================
    > Proud GAWDS member
    >
    http://www.gawds.org/showmember.php?memberid=1495
    >
    > Delivering accessible websites to all ...
    > =============================================
    >
    >
    > "Misha Cohen" <[email protected]> wrote in message
    > news:ev3skd$hqk$[email protected]..
    >> It makes little difference. the trend is towards
    tableless layouts as it
    >> does give more flexibility. And one of the arguments
    is that tables are a
    >> structural organizer and should be used for exel
    type spreadsheets.
    >>
    >> However for many sites a simple table layout styled
    with CSS is fine. If
    >> you're just starting out then this is also much
    easier to do.
    >>
    >>
    >>
    >> rmiman wrote:
    >>
    >>> I'm in the middle of redesigning a site that
    happens to use a lot of
    >>> tables. My question to you is, is it better to
    use DIV's or Table's? I
    >>> could be wrong but from my understanding, I have
    a lot more
    >>> functionality with DIV's due to them being able
    to float anywhere on a
    >>> page, much like a layer.
    >>>
    >
    >

  • Can i use one interface to load data into 2 different tables

    Hi Folks,
    Can i use one interface to load data into 2 different tables(same schema or different schemas) from one source table with same structure ?
    Please give me advice
    Thanks
    Raj
    Edited by: user11410176 on Oct 21, 2009 9:55 AM

    Hi Lucky,
    Thanks for your reply,
    What iam trying is ...Iam trying to load the data from legacy tables(3) into oracle staging tables.But i need to load the same source data into two staging tables(these staging tables are in two different schemas)
    can i load this source data into two staging tables by using single standard interface(some business logic is there)
    If i can then give me some suggestion how to do that
    Thanks in advance
    Raj

  • How can I use TopLink for querys that have two and more tables?

    I use TopLink today, and I can use one table to query, but how can I use TopLink for querys that have two and more tables?
    Thank you for see and answer this question.

    You can write a custom SQL query and map it to an object as needed. You can also use the Toplink query language "anyOf" or "get" commands to map two tables as long as you map them as one to one (get command) or one to many (anyOf command) in the toplink mapping workbench.
    Zev.
    check out oracle.toplink.expressions.Expression in the 10.1.3 API

  • How to use a value taken in a variable as a table name in a query?

    I am fetching a value in a variable as:
    <select application_short_name into l_appl_nm from fnd_application where application_id=:p_appl_id>
    Now I need to use the value fetched in variable "l_appl_nm" as a table partition name in next query.
    Can anyone please guide me on this concept.
    Expecting replies asap !!

    I am fetching a value in a variable as:
    <select application_short_name into l_appl_nm from fnd_application where application_id=:p_appl_id>
    Now I need to use the value fetched in variable "l_appl_nm" as a table partition name in next query.
    Wrong.
    This is NOT how partition pruning should be applied.
    Expecting replies asap !!
    In that case, the forum members who provide their experience and knowledge for free, expects you to PAY for that.
    You want make demands on this volunteer forum? Then by the same token, payment demands can be made on you.
    So.. are you going to pay up?

  • Using column value is it possible to find the table name in the database?

    Hi all,
    using column value is it possible to find the table name in the database?
    guys i need the table value
    Note:
    oracle-9i
    for example:
    i don't know NIC(column value) in which table in the database.
    Thank you,
    with regards,
    JP.
    Edited by: Guest on Feb 27, 2012 5:42 AM

    Hi,
    As far as I understand what you are asking for I would suggest 4 data dictionaries that will help you to know the table name from the column names
    1. USER_TAB_COLS
    2. ALL_TAB_COLS
    3. DBA_TAB_COLS
    4. COLS
    These can give you detail information about the columns and respective tables at user, schema, dba level. Further information on the table can be found by querying ALL_OBJECTS table giving table_name as Object_name, or you can join the data dictionaries too.
    To know about various data dictionaries avalible in Oracle please query select * from cat;
    Let us know if you need further assistance.
    Twinkle

  • How to use complex function as condition in Oracle Rule Decision Table?

    How to use complex function as condition in Oracle Rule Decision Table?
    We want to compare an incoming date range with the date defined in the rules. This date comparison is based on the input date in the fact & the date as defined for each rule. Can this be done in a decision table?

    I see a couple of problems here.
    First, what you posted below is not a syntactically valid query. It seems to be part of a larger query, specifically, this looks to be only the GROUP BY clause of a query.
    Prabu ammaiappan wrote:
    Hi,
    I Have a group function in the Query. Below is the Query i have used it,
    GROUP BY S.FREIGHTCLASS,
    R.CONTAINERKEY,
    S.SKU,
    S.DESCR ||S.DESCRIPTION2,
    S.PVTYPE,
    RD.LOTTABLE06,
    R.WAREHOUSEREFERENCE,
    RD.TOLOC,
    R.ADDWHO,
    R.TYPE,
    S.CWFLAG,
    S.STDNETWGT,
    S.ORDERUOM,
    R.ADDDATE,
    C.DESCRIPTION,
    (CASE WHEN P.POKEY LIKE '%PUR%' THEN 'NULL' ELSE to_char(P.PODATE,'dd/mm/yyyy') END),
    NVL((CASE WHEN R.ADDWHO='BOOMI' THEN RDD.SUPPLIERNAME END),SS.COMPANY),
    RDD.BRAND,
    S.NAPA,
    RD.RECEIPTKEY,
    R.SUSR4,
    P.POKEY,
    RDD.SUSR1,
    r.STATUS, DECODE(RDD.SUSR2,' ',0,'',0,RDD.SUSR2),
    rd.SUSR3Second, the answer to your primary question, "How do I add a predicate with with a MAX() function to my where clause?" is that you don't. As you discovered, if you attempt to do so, you'll find it doesn't work. If you stop and think about how SQL is processed, it should make sense to you why the SQL is not valid.
    If you want to apply a filter condition such as:
    trunc(max(RD.DATERECEIVED)) BETWEEN TO_DATE('01/08/2011','DD/MM/YYYY') AND TO_DATE('01/08/2011','DD/MM/YYYY')you should do it in a HAVING clause, not a where clause:
    select ....
      from ....
    where ....
    group by ....
    having max(some_date) between this_date and that_date;Hope that helps,
    -Mark

  • How can i use BAPI to insert a few records  into standard table

    Can anyone help me with how can i use BAPI to insert some records into a standard table from an internal table?

    Hi,
    First of All try to Explain your Question first.
    This is a general question without mentioning the Table you want to Update.
    Please give the details before posting a question  so it will help people to understand your Problem.
    Regards
    Sandipan

  • 'use dynamic name' and 'caching properites' options for alias table...

    Hello everybody,
    can anybody please explain 'use dynamic name' and 'caching properites' options for alias tables...
    Thanks...
    eagerly waiting for a response..
    Vijay

    You want to create dynamic target table name right?
    You can refresh a variable like #GET_SESSION
    #GET_SESSION= SELECT <%=odiRef.getSession("SESS_NAME")%> FROM DUAL
    My tmp table name like TMP_#GET_SESSION
    then in your package refresh #GET_SESSION variable and you can use it.
    I hope this can be helpful
    Thanks

Maybe you are looking for

  • Can't launch PDF in Production mode

    I am publishing a Captivate CBT to my LMS, but I cannot get the Captivate program to launch the PDF's I have embedded within the text. When I publish the docs are included with the files to move to my LMS. In other words, once the Captivate program i

  • Kernel crash, Lion and Mac pro 1.1

    Hello guys, for 2 months I'm getting errors and crashes on my MP. I have no idea what causes thouse crashes, I'm hoping somebody can help me to check what is wrong and explain to me. I will add two crash reports and I would like to know if you can fi

  • Wireless USB Audio Device Recognition

    The mini stereo connection is a no brainer, but did anyone set up a wireless sound stream using USB as an output from the AirportExpress? I have an ingenious Grace Design preamp & D/A model M902 with a mini USB input. When connecting the M902 via USB

  • If my macbook is version 10.4.11, what is the next operating system or version that I need to upgrade to?

    My macbook is version 10.4.11. I'm having a lot of issues with updating to the new itunes, and even connecting my iphone. I know it is time to ugrade my whole operating system, but i am unsure of which one I need to get. Is it snow leopard, lion, or

  • Cell Bkgrd now  showing up in template pages

    I've created my template page "dwt" with a background image in one of the table cells AND a background image in the body of the page. When I create my "child html pages" everything looks OK except the two backgrounds don't show up. They show up fine