Netscape positioning problems

Discussion in 'ASP .Net' started by Sergey Poberezovskiy, Jun 7, 2004.

  1. Hi,

    Can anyone tell me how do I position controls within
    Netscape without using tables? Consider the following:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
    Transitional//EN">
    <HTML>
    <HEAD>
    <style>
    .myDiv { display:inline; width:100px; }
    </style>
    </HEAD>
    <body>
    <table>
    <tr>
    <td><div class="myDiv">Text:</div>
    <input size="40" type="text"></td>
    </tr>
    <tr>
    <td>Something else</td>
    </tr>
    <tr>
    <td>
    <div class="myDiv">Another Text:</div>
    <input size="40" type="text">
    </td>
    </tr>
    <tr>
    <td>Finish table</td>
    </tr>
    </table>
    </body>
    </HTML>

    My textBoxes are perfectly aligned in IE, but under
    Netscape width attribute is just ingored.

    Any help is much appreciated.
     
    Sergey Poberezovskiy, Jun 7, 2004
    #1
    1. Advertisements

  2. It might be better to ask this question in a Netscape specific newsgroup.

    "Sergey Poberezovskiy" <> wrote in
    message news:18f9101c44c3b$aedbd340$...
    > Hi,
    >
    > Can anyone tell me how do I position controls within
    > Netscape without using tables? Consider the following:
    >
    > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
    > Transitional//EN">
    > <HTML>
    > <HEAD>
    > <style>
    > .myDiv { display:inline; width:100px; }
    > </style>
    > </HEAD>
    > <body>
    > <table>
    > <tr>
    > <td><div class="myDiv">Text:</div>
    > <input size="40" type="text"></td>
    > </tr>
    > <tr>
    > <td>Something else</td>
    > </tr>
    > <tr>
    > <td>
    > <div class="myDiv">Another Text:</div>
    > <input size="40" type="text">
    > </td>
    > </tr>
    > <tr>
    > <td>Finish table</td>
    > </tr>
    > </table>
    > </body>
    > </HTML>
    >
    > My textBoxes are perfectly aligned in IE, but under
    > Netscape width attribute is just ingored.
    >
    > Any help is much appreciated.
    >
    >
     
    Peter Rilling, Jun 7, 2004
    #2
    1. Advertisements

  3. Quoted from design notes for "width" property in CSS:

    Note in Netscape 4.0+:

    This property does not work (properly) with inline elements, form
    fields, images, and definition lists

    You see that inline elements is not supported ,so you should probably use
    the "table" solution.

    "Sergey Poberezovskiy" <> ???
    news:18f9101c44c3b$aedbd340$ ???...
    > Hi,
    >
    > Can anyone tell me how do I position controls within
    > Netscape without using tables? Consider the following:
    >
    > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
    > Transitional//EN">
    > <HTML>
    > <HEAD>
    > <style>
    > .myDiv { display:inline; width:100px; }
    > </style>
    > </HEAD>
    > <body>
    > <table>
    > <tr>
    > <td><div class="myDiv">Text:</div>
    > <input size="40" type="text"></td>
    > </tr>
    > <tr>
    > <td>Something else</td>
    > </tr>
    > <tr>
    > <td>
    > <div class="myDiv">Another Text:</div>
    > <input size="40" type="text">
    > </td>
    > </tr>
    > <tr>
    > <td>Finish table</td>
    > </tr>
    > </table>
    > </body>
    > </HTML>
    >
    > My textBoxes are perfectly aligned in IE, but under
    > Netscape width attribute is just ingored.
    >
    > Any help is much appreciated.
    >
    >
     
    Lau Lei Cheong, Jun 7, 2004
    #3
  4. Sergey Poberezovskiy

    John Guest

    To get netscape to recognise the width, apply css width to the textboxes
    themselves, too. So if your textboxes were class="myDiv", they'd be 100px
    wide.

    -John

    "Sergey Poberezovskiy" <> wrote in
    message news:18f9101c44c3b$aedbd340$...
    > Hi,
    >
    > Can anyone tell me how do I position controls within
    > Netscape without using tables? Consider the following:
    >
    > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
    > Transitional//EN">
    > <HTML>
    > <HEAD>
    > <style>
    > .myDiv { display:inline; width:100px; }
    > </style>
    > </HEAD>
    > <body>
    > <table>
    > <tr>
    > <td><div class="myDiv">Text:</div>
    > <input size="40" type="text"></td>
    > </tr>
    > <tr>
    > <td>Something else</td>
    > </tr>
    > <tr>
    > <td>
    > <div class="myDiv">Another Text:</div>
    > <input size="40" type="text">
    > </td>
    > </tr>
    > <tr>
    > <td>Finish table</td>
    > </tr>
    > </table>
    > </body>
    > </HTML>
    >
    > My textBoxes are perfectly aligned in IE, but under
    > Netscape width attribute is just ingored.
    >
    > Any help is much appreciated.
    >
    >
     
    John, Jun 7, 2004
    #4
  5. I think what the origional poster wants is something like to place tabstops
    after the "field labels".

    "John" <> ¦b¶l¥ó
    news:0tVwc.12842$ ¤¤¼¶¼g...
    > To get netscape to recognise the width, apply css width to the textboxes
    > themselves, too. So if your textboxes were class="myDiv", they'd be 100px
    > wide.
    >
    > -John
    >
    > "Sergey Poberezovskiy" <> wrote in
    > message news:18f9101c44c3b$aedbd340$...
    > > Hi,
    > >
    > > Can anyone tell me how do I position controls within
    > > Netscape without using tables? Consider the following:
    > >
    > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
    > > Transitional//EN">
    > > <HTML>
    > > <HEAD>
    > > <style>
    > > .myDiv { display:inline; width:100px; }
    > > </style>
    > > </HEAD>
    > > <body>
    > > <table>
    > > <tr>
    > > <td><div class="myDiv">Text:</div>
    > > <input size="40" type="text"></td>
    > > </tr>
    > > <tr>
    > > <td>Something else</td>
    > > </tr>
    > > <tr>
    > > <td>
    > > <div class="myDiv">Another Text:</div>
    > > <input size="40" type="text">
    > > </td>
    > > </tr>
    > > <tr>
    > > <td>Finish table</td>
    > > </tr>
    > > </table>
    > > </body>
    > > </HTML>
    > >
    > > My textBoxes are perfectly aligned in IE, but under
    > > Netscape width attribute is just ingored.
    > >
    > > Any help is much appreciated.
    > >
    > >

    >
    >
     
    Lau Lei Cheong, Jun 8, 2004
    #5
  6. Sergey Poberezovskiy

    John Guest

    Aha - gotcha! I'll have to put my reading glasses on and my brain in, next
    time. ;p

    -John

    "Lau Lei Cheong" <> wrote in message
    news:...
    > I think what the origional poster wants is something like to place

    tabstops
    > after the "field labels".
     
    John, Jun 8, 2004
    #6
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Rick
    Replies:
    3
    Views:
    584
    Chris Becker
    Jul 7, 2003
  2. Jawiko
    Replies:
    2
    Views:
    512
    Laurent Bugnion
    Jan 22, 2006
  3. Tom
    Replies:
    0
    Views:
    641
  4. Mickey Segal
    Replies:
    1
    Views:
    802
    Mickey Segal
    May 21, 2004
  5. Fredo Vincentis

    problems with relative positioning

    Fredo Vincentis, Nov 21, 2003, in forum: HTML
    Replies:
    4
    Views:
    925
    Leif K-Brooks
    Nov 22, 2003
  6. Marc
    Replies:
    52
    Views:
    1,308
    Blinky the Shark
    Oct 3, 2005
  7. yaktipper
    Replies:
    10
    Views:
    522
    Richard Cornford
    Jul 10, 2003
  8. Philip Townsend

    problems with flyout menus and positioning

    Philip Townsend, Sep 30, 2003, in forum: Javascript
    Replies:
    1
    Views:
    175
Loading...