Two font style in one TableCell
Hi all,
Want to know how to make two font style in one cell?
My code is in asp.net code behind not CSS.
I have a coding like this:
ASP.NET Code:
Dim tblMain As new Table
tblMain.ID = "tblMain"
tblMain.EnableViewState = True
tblMain.CellPadding = 0
tblMain.CellSpacing = 0
tblMain.BorderWidth = Unit.Point(0)
Dim dRow As TableRow
Dim dCell As TableCell
dRow = New TableRow
dCell = New TableCell
dCell.BackColor = System.Drawing.Color.Lavender
dCell.Text = "Customer Name"
dRow.Cells.Add(dCell)
What I want here is I want to add "Triangle" at the end of "Customer Name" text. And for this triangle, I must use "Wingdings 3" font with character "p".
but "Customer Name" is in Tahoma font.
Can I add like this? or simply I just can't do like that?
Re: Two font style in one TableCell
You can add 2 labels (or maybe span tags) in the cell that you have created. Place "Customer Name" in the first label, apply relevant style to it. Next, add "p" to second label, apply relevant style to it. Then place both the labels to the cell.