Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder kyllle's Avatar
    Join Date
    Mar 2008
    Posts
    334
    Thanks
    85
    Thanked 2 Times in 2 Posts

    Styling asp questionnaire responses

    Hi all,

    I have created a questionnaire which uses asp, my question is how do I style the various text thats received by the user in their email, I know I can add <b> tags etc to the text but what about changing the font-family, adding backgrond colour etc to each questions heading etc.

    I have provided a snippet of the code Im trying to style, hope you can help.

    Code:
    dim strEmailSend
    strEmailSend = strEmailSend & "<b>Ticket Number:</b> " & request.Form("TicketNumber")
    strEmailSend = strEmailSend & "<br/><br/>"
    strEmailSend = strEmailSend & "<b>Date:</b> " & request.Form("date")
    strEmailSend = strEmailSend & "<br/><br/>"
    strEmailSend = strEmailSend & "<b>Client:</b> " & request.Form("Client")
    strEmailSend = strEmailSend & "<br/><br/>"
    strEmailSend = strEmailSend & "<b>Contact Name:</b> " & request.Form("con_name")
    strEmailSend = strEmailSend & "<br/><br/>"
    strEmailSend = strEmailSend & "<b>Phone Calls:</b> " & request.Form("phone")
    strEmailSend = strEmailSend & "<br/><br/>"
    strEmailSend = strEmailSend & "<b>Comments:</b> " & request.Form("phone_com")
    strEmailSend = strEmailSend & "<br/><br/>"
    strEmailSend = strEmailSend & "<b>Email:</b> " & request.Form("emails")
    strEmailSend = strEmailSend & "<br/><br/>"
    strEmailSend = strEmailSend & "<b>Comments:</b> " & request.Form("email_com")
    strEmailSend = strEmailSend & "<br/><br/>"
    strEmailSend = strEmailSend & "<b>Problem Resolution:</b> " & request.Form("resolution")
    strEmailSend = strEmailSend & "<br/><br/>"
    strEmailSend = strEmailSend & "<b>Comments:</b> " & request.Form("prob_res_com")
    strEmailSend = strEmailSend & "<br/><br/>"
    strEmailSend = strEmailSend & "<b>Problem Escalation:</b> " & request.Form("escalation")
    strEmailSend = strEmailSend & "<br/><br/>"
    strEmailSend = strEmailSend & "<b>Comments:</b> " & request.Form("prob_esc_inv_com")
    strEmailSend = strEmailSend & "<br/><br/>"
    strEmailSend = strEmailSend & "<b>Satisafaction with response:</b> " & request.Form("responses")
    strEmailSend = strEmailSend & "<br/><br/>"
    strEmailSend = strEmailSend & "<b>Comments:</b> " & request.Form("prob_esc_res_com")
    strEmailSend = strEmailSend & "<br/><br/>"
    strEmailSend = strEmailSend & "<b>Additional comments:</b> " & request.Form("Comments")
    
    'response.Write(strEmailSend)
    
    'sendemail(strEmailSend)
    Thanks in advance!!

    Kyle

  • #2
    Regular Coder Jazzo's Avatar
    Join Date
    Apr 2008
    Location
    New York City
    Posts
    164
    Thanks
    20
    Thanked 2 Times in 2 Posts
    First off, DON'T USE HTML FORMATTING TAGS. I apologize for my cyber-yelling, but using CSS for all formatting is a good habit to get into. Instead of using bold tags, wrap each element in a span tag and add a style attribute. For example:

    Code:
    <span style="font-weight:bold;font-family:[YOUR FONT];background-color:[YOUR BG COLOR]>texttexttext</span>
    For a complete CSS reference, see this page: http://www.w3schools.com/css/css_reference_atoz.asp
    ~Julian
    14 y/o web developer, drummer, and Bridge player


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •