Firefox table centering problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ben.saur@gmail.com

    Firefox table centering problem

    I am having a problem viewing a centered table using Firefox. When the
    page is long enough to scroll, the alignment moves slightly to the
    left. The alignment doesn't change when I view the page with IE. Here
    is the code:

    Table 1:
    <table width="100%">
    <tr><td >
    <div align="center">
    <table border="1" style="width:80 0; margin-left:auto;
    margin-right:auto;">
    <tr><td></td></tr>
    </table>
    </div>
    </td></tr>
    </table>


    Table 2:
    <table width="100%" >
    <tr><td >
    <div align="center">
    <table border="1" style="width:80 0; margin-left:auto;
    margin-right:auto; height:1000px;" >
    <tr><td></td></tr>
    </table>
    </div>
    </td></tr>
    </table>


    Am I missing something?

  • 'sNiek

    #2
    Re: Firefox table centering problem

    ben.saur@gmail. com schreef:[color=blue]
    > I am having a problem viewing a centered table using Firefox. When the
    > page is long enough to scroll, the alignment moves slightly to the
    > left. The alignment doesn't change when I view the page with IE. Here
    > is the code:
    >
    > Table 1:
    > <table width="100%">
    > <tr><td >
    > <div align="center">
    > <table border="1" style="width:80 0; margin-left:auto;
    > margin-right:auto;">
    > <tr><td></td></tr>
    > </table>
    > </div>
    > </td></tr>
    > </table>
    > http://www.btothe3.com/b.php
    >
    > Table 2:
    > <table width="100%" >
    > <tr><td >
    > <div align="center">
    > <table border="1" style="width:80 0; margin-left:auto;
    > margin-right:auto; height:1000px;" >
    > <tr><td></td></tr>
    > </table>
    > </div>
    > </td></tr>
    > </table>
    > http://www.btothe3.com/a.php
    >
    > Am I missing something?
    >[/color]

    yep, in FF there is no disabled scrollbar when you don't have to scroll. In IE you get a disabled scrollbar
    when you don't need to scroll.

    Sometimes it's so simple you don't see it ;-)

    --
    Niek

    Comment

    • ben.saur@gmail.com

      #3
      Re: Firefox table centering problem

      Quite. Thanks.

      Comment

      • Gérard Talbot

        #4
        Re: Firefox table centering problem

        ben.saur@gmail. com a écrit :[color=blue]
        > I am having a problem viewing a centered table using Firefox. When the
        > page is long enough to scroll, the alignment moves slightly to the
        > left. The alignment doesn't change when I view the page with IE. Here
        > is the code:
        >
        > Table 1:
        > <table width="100%">
        > <tr><td >
        > <div align="center">
        > <table border="1" style="width:80 0; margin-left:auto;
        > margin-right:auto;">[/color]

        So far, you have absolutely no need, no justification for nesting tables
        like you do.
        [color=blue]
        > <tr><td></td></tr>
        > </table>
        > </div>
        > </td></tr>
        > </table>
        > http://www.btothe3.com/b.php
        >[/color]

        <table width="800" style="margin-left: auto; margin-right:auto;
        empty-cells: show;">
        <tr><td>
        ....

        [color=blue]
        > Table 2:
        > <table width="100%" >
        > <tr><td >
        > <div align="center">
        > <table border="1" style="width:80 0; margin-left:auto;
        > margin-right:auto; height:1000px;" >
        > <tr><td></td></tr>
        > </table>
        > </div>
        > </td></tr>
        > </table>
        > http://www.btothe3.com/a.php
        >
        > Am I missing something?[/color]


        9.6. Why doesn't <TABLE WIDTH="100%"> use the full browser width?
        The Web Design Group's Web Authoring FAQ addresses frequently asked questions related to HTML, images, style sheets, and other Web authoring issues.


        Gérard
        --
        remove blah to email me

        Comment

        Working...