WeLoveCSS Logo
Home Profile Members Search Rules Help New Posts



WeLoveCSS > WEB DESIGN > CSS > Interweaving CSS and ASP

Reply
  Thread Tools Display Modes
Old 11th January 08, 01:18 PM   #1
SteveH
WLC Member
 
Join Date: Jan 2008
Posts: 1
Default Interweaving CSS and ASP

Hello

I have the following snippet of ASP script which needs tidying up with a little help from CSS. The problem is that I am not too sure where to start tidying it up.


myMail.Subject="Your message to company name"

myMail.HTMLBody="Your message." & vbcrlf & vbcrlf & _

"Please do not reply to this email" & vbcrlf & "<br><br>" &_

"<B><font face='verdana' size='2' color='navy'>Full name:</font></B> " & sname & vbcrlf & "<br>" &_

"<B><font face='verdana' size='2' color='navy'>Email</font></B>: " & sEmailAddress & vbcrlf & "<br>" &_

"<B><font face='verdana' size='2' color='navy'>Business</font></B>: " & sbusinessTitle & vbcrlf & "<br>" &_

"<B><font face='verdana' size='2' color='navy'>Country</font></B>: " & sCountryName & vbcrlf & "<br>" &_

"<B><font face='verdana' size='2' color='navy'>Message</font></B>: " & MessageTitle & vbcrlf


How would I begin to remove the following line and replace it with CSS:

<B><font face='verdana' size='2' color='navy

and how would I apply CSS to the text message after the two top lines (myMail.Subject and myMain.HTMLBody)?

At the moment it all looks a bit cumbersome and I would appreciate some guidance, please.

Many thanks.

Steve
SteveH is offline   Reply With Quote
Old 23rd January 08, 08:44 AM   #2
chrishirst
Banned
 
Join Date: Jun 2006
Location: Blackp ool U.K.
Posts: 3,197
Default Re: Interweaving CSS and ASP

inline style only because you cannot insert a style sheet into the headers.

Code:
"<div style="font-weight:bold;font-size:1em;font-family:verdana;color:navy">Text</div>" & vbCrLf
chrishirst is offline   Reply With Quote
Reply


Thread Tools
Display Modes
Linear Mode Linear Mode

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:27 AM.



Home | Advertise | Contact Us | Top
Home | Advertise | Contact Us | Top

Copyright© 2006 WeLoveCSS.com. All Rights Reserved.
Powered by vBulletin Version 3.8.4 Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.