Netscape SPAN problem -- <asp:label> issue

Discussion in 'ASP .Net' started by Burak, Nov 24, 2004.

  1. Burak

    Burak Guest

    Hello,

    I am dynamically creating a label and assigning a
    width to it.

    Dim lbl3 As New Label
    lbl3.Text = name
    lbl3.Width =
    System.Web.UI.WebControls.Unit.Point(255)

    This shows up as

    <span style="width:255pt;">

    when I do a viewsource. IE displays the width fine
    but Netscape 7.1 does not preserve the width of the
    span.

    I copied the <browsercaps> xml in the following page

    http://slingfive.com/pages/code/browserCaps/

    into my web.config but it didn't solve my problem.

    Do you know how can I get nescape to display the
    width properly?

    Thank you,

    Burak
     
    Burak, Nov 24, 2004
    #1
    1. Advertising

  2. Try adding the height too, it may help. If not, try replacing the SPAN with
    a DIV. The DIV is a block statement, while the SPAN is not by default.

    Don't forget that Netscape 7.1/.2 is full of bugs.

    S. L.

    "Burak" <> wrote in message
    news:...
    > Hello,
    >
    > I am dynamically creating a label and assigning a
    > width to it.
    >
    > Dim lbl3 As New Label
    > lbl3.Text = name
    > lbl3.Width =
    > System.Web.UI.WebControls.Unit.Point(255)
    >
    > This shows up as
    >
    > <span style="width:255pt;">
    >
    > when I do a viewsource. IE displays the width fine
    > but Netscape 7.1 does not preserve the width of the
    > span.
    >
    > I copied the <browsercaps> xml in the following page
    >
    > http://slingfive.com/pages/code/browserCaps/
    >
    > into my web.config but it didn't solve my problem.
    >
    > Do you know how can I get nescape to display the
    > width properly?
    >
    > Thank you,
    >
    > Burak
     
    Sylvain Lafontaine, Nov 24, 2004
    #2
    1. Advertising

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. Fulio Open

    Can span include span?

    Fulio Open, Jun 26, 2009, in forum: HTML
    Replies:
    5
    Views:
    563
    dorayme
    Jun 26, 2009
  2. Stéphane Klein
    Replies:
    2
    Views:
    1,831
    John Nagle
    Mar 30, 2010
  3. Stefan Behnel
    Replies:
    0
    Views:
    498
    Stefan Behnel
    Mar 29, 2010
  4. Dan Bishop

    DataGrid (body only) contained in <span>...</span> tags

    Dan Bishop, Jun 7, 2004, in forum: ASP .Net Datagrid Control
    Replies:
    2
    Views:
    298
    Kilic Beg
    Jun 7, 2004
  5. Knut Krueger
    Replies:
    8
    Views:
    307
    Knut Krueger
    Aug 20, 2013
Loading...

Share This Page