Netscape SPAN problem -- <asp:label> issue

B

Burak

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
 
S

Sylvain Lafontaine

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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top