Hi Team,
We are developing crossbrowsing type application with asp.net2.0
In my page i am having server side label control
<asp:Label id="Label1" runat="server" Width="100px" >I am quite a bit of text,
overflowing and making my label wrap. If I could set the width on this control,
I’d be mighty happy.
</asp:Label>
In my system i am having ie 7 and firefox 2 browser.
After the page is rendered
The markup which is generated by ie7 is as follows:
<span id="Label1" style="display:inline-block;width:100px;">I am quite a bit of text,
overflowing and making my label wrap. If I could set the width on this control,
I’d be mighty happy.
</span>
and the markup which is generated by firefox is as follows
<span id="Label1" style="display:inline-block;width:100px;">I am quite a bit of text,
overflowing and making my label wrap. If I could set the width on this control,
I’d be mighty happy.
</span>
both markups are same.but the text is getting width 100px in ie7 ie working fine but in firefox is not getting.
I am getting the same result after adding <Browsercaps> <case match="^Mozilla/5\.0 \([^)]*\) (Gecko/[-\d]+)(?'VendorProductToken' (?'type'[^/\d]*)([\d]*)/(?'version'(?'major'\d+)(?'minor'\.\d+)(?'letters' \w*)))?">
browser=Gecko
<filter>
<case match="(Gecko/[-\d]+)(?'VendorProductToken' (?'type'[^/\d]*)([\d]*)/(?'version'(?'major'\d+)(?'minor'\.\d+)(?'letters' \w*)))">
type=${type}
</case>
<case>
<!-- plain Mozilla if no VendorProductToken found -->
type=Mozilla
</case>
</filter>
frames=true
tables=true
cookies=true
javascript=true
javaapplets=true
ecmascriptversion=1.5
w3cdomversion=1.0
css1=true
css2=true
xml=true
tagwriter=System.Web.UI.HtmlTextWriter
<case match="rv?'version'(?'major'\d+)(?'minor'\.\d+)(?' lette rs'\w*))">
version=${version}
majorversion=0${major}
minorversion=0${minor}
<case match="^b" with="${letters}">
beta=true
</case>
</case>
</case></Browsercaps> in <system.web> in machine.config as well as web.config.
I want the same look and feel in ie7,firefox ie6.
Please give me suggestions