Print Page | Close Window

Display first record in different font

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=3011
Printed Date: 29 March 2026 at 5:00pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Display first record in different font
Posted By: Nischint
Subject: Display first record in different font
Date Posted: 25 May 2003 at 11:50am
I have a very simple asp page, which lists the top 3 records by id on a page. Each record contains 3 field: Title, date and summary. I know how to show the records in a table with alternately colored rows, but how do I make only the first record show up it's Title field in a specific color or font??

All the records and fields are displayed in 12px in black. The first record's title field should be displayed in 14px in red. How do I do that??


-------------
A better idiot

http://www.jamlikethat.com">Jam Like That



Replies:
Posted By: fernan82
Date Posted: 25 May 2003 at 12:18pm

you can try something like this

counter=1
Do While Not rsCommon.EOF

If counter=1 Then
Response.Write("<h3>" & rsCommon("fields") & "</h3>")
Else
Response.Write("<h6>" & rsCommon("fields") & "</h6>")
End If

counter=counter+1         

Loop

 



-------------
FeRnAN
http://www.danasoft.com/">


Posted By: Nischint
Date Posted: 25 May 2003 at 12:39pm

Thanks, fernan82, that works great!!

 



-------------
A better idiot

http://www.jamlikethat.com">Jam Like That



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net