PDA

View Full Version : Font formatting and ASP


SteveH
08-07-2008, 04:56 PM
Hello

I have the following code (this is a snippet from the main body of code I am using) which I am trying to format:

'Build the HTML for each bullet item

strHTML = strHTML & "<li><a target=""_blank"" href=""" & link & """>" _
& "<span style=""font-family: arial; font-color: #BDA0F2; font-size: 10pt; font-weight: bold;"">" _
& title & "</span>"
strHTML = strHTML & "</a>"
strHTML = strHTML & "</li>"
strHTML = strHTML & "<br>"

strHTML = strHTML & description
strHTML = strHTML & "<br>"
strHTML = strHTML & "<br> "


In the second line (above), that is:

& "<span style=""font-family: arial; font-color: #BDA0F2; font-size: 10pt;

I can change the font size and the face, but not the font colour; this line deals with the 'headlines' of a clickable newsfeed. IT is a link and at the moment is in bright blue - is there a way of changing this?

My other question concerns how to change the appearance of the brief description which appears underneath the headline?

At the moment it looks like Times, but I would like to be able to change it to, say, arial at 10pt or 9pt or whatever. How would I do that?

This is the link to the page I am talking about:

http://stevehigham59.7host.com/9Test/BBCfeed.asp

Thanks for any help.

Steve

Brandoe85
08-07-2008, 05:02 PM
Change it to color instead of font-color. Moving over to the css forum - you'll get better responses over there.

SteveH
08-08-2008, 09:46 AM
Hello Brandoe

Thanks for your message. Your suggestion, to use 'color' alone worked a treat, thanks.

Without defining a style-sheet (this script will all be passed to Flash so I need to strip all code of HTML tags outside ASP's <% %>, how would I justify my ASP script?

Great if you can help with that one.

Cheers

Steve