We are developing crossbrowsing type application with asp.net2.0
In my page i am having server side label control
Expand|Select|Wrap|Line Numbers
- <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>
After the page is rendered
The markup which is generated by ie7 is as follows:
[HTML] <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>
[/HTML]
and the markup which is generated by firefox is as follows
[HTML]<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>
[/HTML]
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
Expand|Select|Wrap|Line Numbers
- <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+)(?'letters'\w*))">
- version=${version}
- majorversion=0${major}
- minorversion=0${minor}
- <case match="^b" with="${letters}">
- beta=true
- </case>
- </case>
- </case></Browsercaps>
I want the same look and feel in ie7,firefox ie6.
Please give me suggestions