469,325 Members | 1,467 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,325 developers. It's quick & easy.

Browsercaps not working

Hi Team,

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
  1. <asp:Label id="Label1" runat="server"  Width="100px" >I am quite a bit of text, 
  2.         overflowing and making my label wrap. If I could set the width on this control, 
  3.         Id be mighty happy.
  4.         </asp:Label>
  5.  
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:
[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,
Id 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,
Id 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
  1. <Browsercaps>  <case match="^Mozilla/5\.0 \([^)]*\) (Gecko/[-\d]+)(?'VendorProductToken' (?'type'[^/\d]*)([\d]*)/(?'version'(?'major'\d+)(?'minor'\.\d+)(?'letters'\w*)))?">
  2.               browser=Gecko
  3.               <filter>
  4.                   <case match="(Gecko/[-\d]+)(?'VendorProductToken' (?'type'[^/\d]*)([\d]*)/(?'version'(?'major'\d+)(?'minor'\.\d+)(?'letters'\w*)))">
  5.                       type=${type}
  6.                   </case>
  7.                   <case>
  8.                       <!-- plain Mozilla if no VendorProductToken found -->
  9.                       type=Mozilla
  10.                   </case>
  11.               </filter>
  12.               frames=true
  13.               tables=true
  14.               cookies=true
  15.               javascript=true
  16.               javaapplets=true
  17.               ecmascriptversion=1.5
  18.               w3cdomversion=1.0
  19.               css1=true
  20.               css2=true
  21.               xml=true
  22.               tagwriter=System.Web.UI.HtmlTextWriter
  23.               <case match="rv:(?'version'(?'major'\d+)(?'minor'\.\d+)(?'letters'\w*))">
  24.                   version=${version}
  25.                   majorversion=0${major}
  26.                   minorversion=0${minor}
  27.                   <case match="^b" with="${letters}">
  28.                       beta=true
  29.                   </case>
  30.               </case>
  31.           </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
Mar 25 '08 #1
1 1410
acoder
16,027 Expert Mod 8TB
Instead of "inline-block", you need to set it to "block".
Mar 26 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

10 posts views Thread by Jason Collins | last post: by
reply views Thread by Earl Teigrob | last post: by
1 post views Thread by Andy Emmerson via .NET 247 | last post: by
6 posts views Thread by Eric | last post: by
10 posts views Thread by Eric | last post: by
6 posts views Thread by Jim_tvm | last post: by
reply views Thread by sujan | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by Gurmeet2796 | last post: by
reply views Thread by mdpf | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.