change the font size in script

hi, i'm writing script part of an application form by asp.net, sth like
-------------------------------
<script runat="server">

Sub Submit_ApplicationForm(Source As Object, E As EventArgs)

Dim sMsg As String


sMsg+= "Application Form:" & vbcrlf +"<BR>" +"<BR>"
sMsg+= "*Your Personal Detail*" & vbcrlf +"<BR>"
sMsg+= "Title: " & Title.SelectedItem.Text & vbcrlf +"<BR>"
sMsg+= "Surname Name: " & surName.Text & vbcrlf +"<BR>"
sMsg+= "Given Name: " & givName.Text & vbcrlf +"<BR>"
sMsg+= "Address: " & Address.Text & vbcrlf +"<BR>"

</script>
---------------------------------------------------------
and sMsg is the variable of content which will be sent to admin by email.

My question is how can i modify the font size, color or style of suffix info in the script, like "Application Form", "Title", "Surname", etc

Thanks a lot
 
You should be able to wrap the items you want to look different in "SPAN" tags, something like:

Code:
sMsg+= "<span style=""font-weight : Bold;"">Application Form:</span>" & vbcrlf +"<BR>" +"<BR>"

Sound about right?
 
FirstDivision said:
You should be able to wrap the items you want to look different in "SPAN" tags, something like:

Code:
sMsg+= "<span style=""font-weight : Bold;"">Application Form:</span>" & vbcrlf +"<BR>" +"<BR>"

Sound about right?

Right. since the variable is just a string, you can incorporate any html tags you wish. The cleanest way, however would be to use a single tag and define the tag's text attributes within an external css file.
 
Back
Top