Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Font for span
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Versions des environnements
Environment:
C# 3.0
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01338148
Message ID:
01338226
Vues:
13
This message has been marked as a message which has helped to the initial question of the thread.
>>>Hi everybody,
>>>
>>>Is there a way to specify specific font for span like
>>>
>>><span> and </span>
>>>
>>>I want to specify some small font here.
>>>
>>>Thanks a lot in advance.
>>
>>Use the style tag:
>>
>>
>><span style="font-family:Tahoma;font-size:8pt;">
>></span>
>>
>
>I'll try this. I tried before using font size small and didn't notice any difference.

Does the content inside of the span tag have any classes (CSS classes) set? BTW - setting the style and/or class is available on almost all the various HTML tags, not just span. You may also want to try setting a specific size, not a relative size. If neither works, you might want to take a look at a plug-in for FireFox called FireBug. It's a JavaScript debugger and a tool which lets you point at some HTML and play around with the DOM, plus (in your case) view what CSS classes and/or styles are in effect for that element.

To use it, install it as a plug-in into FireFox. Open the page. Then open Firebug via Tools > Fire Bug > Open Firebug (I like opening it in a new window, if you have a really wide monitor or dual monitors it works great). Then click on Inspect. Move the cursor over the element (you'll see each section get highlighted as you move around). Click on the element. On the right hand side you'll see the styles attached to that element and where they're defined.
-Paul

RCS Solutions, Inc.
Blog
Twitter
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform