Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Using <asp:label font-size=16px...> ist not showing size in FireFox Browser

Reply
Thread Tools

Using <asp:label font-size=16px...> ist not showing size in FireFox Browser

 
 
Andreas Klemt
Guest
Posts: n/a
 
      11-28-2004
Hello,

when I use
<asp:label font-size="16px" text="Hello World" runat="server" />

and run FireFox Browser the output of "Hello World" is not in Size 16px.
The size will be ignored and I can not find it in the HTML Source Code.

Why is it a problem with FireFox and what is the solution how to set sizes
in Labels?

Thanks for any help in advance
Andreas


 
Reply With Quote
 
 
 
 
Fredrik Elestedt
Guest
Posts: n/a
 
      11-28-2004
Could you give the HTML code?

I would use CSS instead of setting individual parameters.

// Fredrik

"Andreas Klemt" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello,
>
> when I use
> <asp:label font-size="16px" text="Hello World" runat="server" />
>
> and run FireFox Browser the output of "Hello World" is not in Size 16px.
> The size will be ignored and I can not find it in the HTML Source Code.
>
> Why is it a problem with FireFox and what is the solution how to set sizes
> in Labels?
>
> Thanks for any help in advance
> Andreas
>



 
Reply With Quote
 
 
 
 
theill
Guest
Posts: n/a
 
      11-28-2004
It should work fine with FireFox as well. The generated output of your
label above is:

<span style="font-size:16px;">Hello World</span>

Make sure you don't hide the control somewhere in your code - or that a
stylesheet overrides the text.

Rgd,
Peter Theill

 
Reply With Quote
 
Andreas Klemt
Guest
Posts: n/a
 
      11-28-2004
Hello Peter,

thanks for you reply. But it doesn't work.
Please try this:
<asp:label id="lblTest" font-size="16px" color="red" text="Hello World"
runat="server" />

The output in the FireFox Browser is:
<style id="lblTest"><font color="red">Hello World</font></span>

Why is the font-size missing?

Thanks for you help and any solutions in advance!
Andreas

"theill" <(E-Mail Removed)> schrieb im Newsbeitrag
news:(E-Mail Removed) ups.com...
> It should work fine with FireFox as well. The generated output of your
> label above is:
>
> <span style="font-size:16px;">Hello World</span>
>
> Make sure you don't hide the control somewhere in your code - or that a
> stylesheet overrides the text.
>
> Rgd,
> Peter Theill
>



 
Reply With Quote
 
Peter Theill
Guest
Posts: n/a
 
      11-28-2004
I'm getting this output:

<span id="ctl00_ContentPlaceHolder1_lblTest" color="red"
style="font-size:16px;">Hello World</span>

However I have to admit I'm using a beta version of VS.NET 2005 so I
can't say they haven't fixed a bug. However try to set the "style"
attrbute explicitly on your label. That ought to do it:

<asp:label id="lblTest" style="font-size: 16px; color: red"
text="Hellow World" runat="server" />

Rgd,
Peter Theill

 
Reply With Quote
 
Andreas Klemt
Guest
Posts: n/a
 
      11-28-2004
Hello Peter,
yes you are right. I tried it with VS.NET 2005 and there it works fine but
unfortunatly not with VS.NET 2003.

Kind Regards
Andreas

"Peter Theill" <(E-Mail Removed)> schrieb im Newsbeitrag
news:(E-Mail Removed) oups.com...
> I'm getting this output:
>
> <span id="ctl00_ContentPlaceHolder1_lblTest" color="red"
> style="font-size:16px;">Hello World</span>
>
> However I have to admit I'm using a beta version of VS.NET 2005 so I
> can't say they haven't fixed a bug. However try to set the "style"
> attrbute explicitly on your label. That ought to do it:
>
> <asp:label id="lblTest" style="font-size: 16px; color: red"
> text="Hellow World" runat="server" />
>
> Rgd,
> Peter Theill
>



 
Reply With Quote
 
Peter Theill
Guest
Posts: n/a
 
      11-28-2004
Ok - as a work around you should be able to set the size on the style
e.g. using this CSS in your "<head></head>" section.

<style type="text/css">
#lblTest {
font-size: 16px;
}
</style>

Rgd,
Peter Theill

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Preferred Size, Minimum Size, Size Jason Cavett Java 5 05-25-2008 08:32 AM
Sh Crypto isakmp sa is showing Active but Tunnel is showing line protocol down. urvin Cisco 0 04-15-2008 08:17 AM
mega pixels, file size, image size, and print size - Adobe Evangelists Frank ess Digital Photography 0 11-14-2006 05:08 PM
ASP 1.1: DataGrid - Showing/Not Showing Buttons Ray Booysen ASP .Net 2 03-28-2006 02:49 PM
MY DOOM?? ITS NOT MYDOOM IST SWEN WORM!!!! Eric R. Clark Computer Support 8 02-10-2004 06:36 AM



Advertisments