Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Change Font Size in display
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Change Font Size in display

 Post Reply Post Reply Page  12>
Author
phorne View Drop Down
Newbie
Newbie


Joined: 18 May 2003
Location: United States
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote phorne Quote  Post ReplyReply Direct Link To This Post Topic: Change Font Size in display
    Posted: 21 May 2003 at 8:13pm

I need to change the font and size of a database list and can't get the code to work! I need the title to be smaller - HELP!! Have tried to put the <FONT FACE="Arial" SIZE="-2">Title</FONT> statement int he Response.write format but I must be doing something wrong..

'Loop through the recordset
Do While not rsevent.EOF
 
 'Write the HTML to display the current record in the recordset
 Response.Write (rsevent("number"))
 Response.Write (". ")
 Response.Write (rsevent("title")) 
 Response.Write ("</FONT>") 
 Response.Write ("<br> ")

 'Move to the next record in the recordset
 rsevent.MoveNext


Loop

Back to Top
farrukh View Drop Down
Groupie
Groupie
Avatar

Joined: 10 May 2002
Location: Pakistan
Status: Offline
Points: 147
Post Options Post Options   Thanks (0) Thanks(0)   Quote farrukh Quote  Post ReplyReply Direct Link To This Post Posted: 22 May 2003 at 1:00am

<font size=-2> will not help in decreasing the size of the text. Do use <font size=1 color="green" face="verdana">
and then the asp coding
<%

%>
and close the </font>

i have collected some nice avatars (37) and smileys (227) here you can download
http://www24.brinkster.com/webmastertool/download.html
Back to Top
aero View Drop Down
Groupie
Groupie
Avatar

Joined: 21 May 2003
Location: Denmark
Status: Offline
Points: 80
Post Options Post Options   Thanks (0) Thanks(0)   Quote aero Quote  Post ReplyReply Direct Link To This Post Posted: 22 May 2003 at 4:22am

OR try

<font face="Arial" style="font-size: 11px;" color="red">
<%
U'r ASP CODING
%>
</FONT>

Changes the FONT-SIZE PX to the size U want !!!!!!

 

Back to Top
aero View Drop Down
Groupie
Groupie
Avatar

Joined: 21 May 2003
Location: Denmark
Status: Offline
Points: 80
Post Options Post Options   Thanks (0) Thanks(0)   Quote aero Quote  Post ReplyReply Direct Link To This Post Posted: 22 May 2003 at 4:27am

If U use LOOP then try this !!!!

'Loop through the recordset
Do While not rsevent.EOF
 
 'Write the HTML to display the current record in the recordset
 Response.Write ("<font face="arial" style="font-size'")
 Response.Write (rsevent("number"))
 Response.Write (';" color=2red">)
 Response.Write (rsevent("title")) 
 Response.Write ("</FONT>") 
 Response.Write ("<br> ")

 'Move to the next record in the recordset
 rsevent.MoveNext


Loop

Back to Top
aero View Drop Down
Groupie
Groupie
Avatar

Joined: 21 May 2003
Location: Denmark
Status: Offline
Points: 80
Post Options Post Options   Thanks (0) Thanks(0)   Quote aero Quote  Post ReplyReply Direct Link To This Post Posted: 22 May 2003 at 4:27am

Response.Write (';" color=2red">) = Response.Write (';" color="red">)

sorry

Back to Top
aero View Drop Down
Groupie
Groupie
Avatar

Joined: 21 May 2003
Location: Denmark
Status: Offline
Points: 80
Post Options Post Options   Thanks (0) Thanks(0)   Quote aero Quote  Post ReplyReply Direct Link To This Post Posted: 22 May 2003 at 4:30am

'Loop through the recordset
Do While not rsevent.EOF
 
 'Write the HTML to display the current record in the recordset
 Response.Write ("<font face="arial" style="font-size:'")
 Response.Write (rsevent("number"))
 Response.Write ("'px;" color="red">'")
 Response.Write (rsevent("title")) 
 Response.Write ("'</font>") 
 Response.Write ("<br> ")

 'Move to the next record in the recordset
 rsevent.MoveNext


Loop

Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post Posted: 22 May 2003 at 4:48am

thats not goin to work is it?

dont you have to have double Quotes?

like...

'Loop through the recordset
Do While not rsevent.EOF
 
 'Write the HTML to display the current record in the recordset
 Response.Write ("<font face=""arial"" style=""font-size:'")
 Response.Write (rsevent("number"))
 Response.Write ("'px;"" color=""red"">'")
 Response.Write (rsevent("title")) 
 Response.Write ("'</font>") 
 Response.Write ("<br> ")

 'Move to the next record in the recordset
 rsevent.MoveNext


Loop

Back to Top
phorne View Drop Down
Newbie
Newbie


Joined: 18 May 2003
Location: United States
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote phorne Quote  Post ReplyReply Direct Link To This Post Posted: 22 May 2003 at 5:02am

The last post by Scotty_32 sorta works! It picks up the color but not the font size and also puts the results in single quotes - '1 Armagadon' (Also the number in the script is a field I display!")

Getting close - you guys are great! This is the code as I have it now - if I can get the single quotes gone and the size to work I'll be done!

 

'Loop through the recordset
Do While not rsevent.EOF
 
 'Write the HTML to display the current record in the recordset
 Response.Write ("<font face=""arial"" style=""font-size:'")
 Response.Write (rsevent("number"))
 Response.Write ("'8px;"" color=""red"">'")
 Response.Write (rsevent("title")) 
 Response.Write ("'</font>") 
 Response.Write ("<br> ")

 'Move to the next record in the recordset
 rsevent.MoveNext


Loop

Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.