Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Font for span
Message
General information
Forum:
ASP.NET
Category:
Other
Title:
Environment versions
Environment:
C# 3.0
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01338148
Message ID:
01338226
Views:
11
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform