473,388 Members | 1,234 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

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 2318
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Csaba Gabor | last post by:
What I'd like to do is to be able to set the font of a textarea element to the same font that another element is using (say, for example, an <INPUT type=text ...> element, but if that's a no go,...
0
by: Coleen | last post by:
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...
16
by: maya | last post by:
I have heard so much preaching here about how font sizes should be set as percentages so users can change font-sizes on their browsers... ok, so now at work am working on a site where we need to do...
1
by: Hawksey | last post by:
Hello I have just started messing with the itextsharp component and was wondering if it was possible to add two concatenated phrases each with a different font type to a a table cell eg...
0
by: acarrazco | last post by:
Hello, I am totaly new to VBA and I'm trying to modify a macro that was given to me but it doesn't seem to be working. I'm trying to extract data from three excel spreadsheets, put it into a combined...
3
by: sejal17 | last post by:
hello Can any one tell me how to read multiple worksheets from a single excel file.I have stored that excel in xml file.so i want to read that xml that has multiple worksheet.And i want to store...
3
by: sejal17 | last post by:
hello Can any one tell me how to read multiple worksheets from a single excel file.I have stored that excel in xml file.so i want to read that xml that has multiple worksheet.And i want to store...
5
by: _Who | last post by:
I spent all day yesterday trying different things. Something has happened so I can't change font size. I have a table and in the first cell I have only text. I tried using the cell's Style...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.