468,294 Members | 1,792 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

Multiple font sizes in single .ASP Table cell

HI All :-)

I don't know if I will be able to do this type of formatting, but what I
need to do is have a table row where the text wraps (This is easy) the first
line of text is font size 10 pt and the second (wrapped text) is 6 pt. I
know how to create a style sheet to get all of my font one size or the
other, but does any one have any suggestions on how to do this?

Line 1: font size 10pt>Hi, My name is Coleen<font size 10 pt
Line 2: font size 6pt>I need this to be small like a footnote<font size 6pt

Both lines need to be in the SAME table row/cell...

TIA if any one can help, I really appreciate it :-)

Coleen
---
Posted using Wimdows.net NntpNews Component - Posted from .NET's Largest Community Website: http://www.dotnetjunkies.com/newsgroups/
Nov 18 '05 #1
5 2186
Use span elements, as in

<td><span class="top">Line one</span><br/><span class="bottom">line two</span></td>
Nov 18 '05 #2
Thank you - I didn't know you could do that in ASP, only in HTLM...beginner's luck - Thanks!

---
Posted using Wimdows.net NntpNews Component - Posted from .NET's Largest Community Website: http://www.dotnetjunkies.com/newsgroups/
Nov 18 '05 #3
Well, I tried Span, it does NOT work with ASP .Net -- any other suggestions? I'm looking at RowSpan, but have never used it before. Do you have any links to examples of how this might work? Thanks for your help :-) Coleen

---
Posted using Wimdows.net NntpNews Component - Posted from .NET's Largest Community Website: http://www.dotnetjunkies.com/newsgroups/
Nov 18 '05 #4
Use :first-line pseudo element in your style sheet. Unless of course it's
you who's wrapping the text, then just put the first line in a span or div
element and set the style on that...

Jerry

"coleenholley" <coleenholley@-NOSPAM-dmv.state.nv.us> wrote in message
news:OE**************@tk2msftngp13.phx.gbl...
HI All :-)

I don't know if I will be able to do this type of formatting, but what I
need to do is have a table row where the text wraps (This is easy) the first line of text is font size 10 pt and the second (wrapped text) is 6 pt. I
know how to create a style sheet to get all of my font one size or the
other, but does any one have any suggestions on how to do this?

Line 1: font size 10pt>Hi, My name is Coleen<font size 10 pt
Line 2: font size 6pt>I need this to be small like a footnote<font size 6pt
Both lines need to be in the SAME table row/cell...

TIA if any one can help, I really appreciate it :-)

Coleen
---
Posted using Wimdows.net NntpNews Component - Posted from .NET's Largest

Community Website: http://www.dotnetjunkies.com/newsgroups/
Nov 18 '05 #5
I tried using Span, but you can not use a span element inside an ASP table row...if there is a way to do that, do you happen to have an example? Thanks for your help :-) Coleen

---
Posted using Wimdows.net NntpNews Component - Posted from .NET's Largest Community Website: http://www.dotnetjunkies.com/newsgroups/
Nov 18 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Csaba Gabor | last post: by
16 posts views Thread by maya | last post: by
5 posts views Thread by _Who | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by Teichintx | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.