SunQuest
 
           .NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgramming.NET Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old May 2nd, 2001, 06:40 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,578 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
Font Size

<i><b>Originally posted by : Alicia (aliciaannchapman@hotmail.com)</b></i><br />This should be easy...I'm placing data from a record set into an html table and would like to make the font size in the table smaller. I don't think I can control this in the html code, but need to do so in the ASP code. Does anyone know how to do this?<br /><br />My code: (The font tag after the table tag isn't doing anything. The text in the table doesn't change if I change the size variable.)<br /><br /><table width="100%" border="0"><font size=1><br /><tr><br /> <td>Emp#</td><td>Name</td><td>Street Addr</td><td>City</td><td>State</td><td>Zip</td><td>Country</td><td>Phone</td><td>Start Date</td><td>Gender</td></tr> <br /><tr> <br /> <% while (!Recordset1.EOF) { %><br /> <td><%=(Recordset1.Fields.Item("NM_IDNO").Value)%></td><br /> <td><%=(Recordset1.Fields.Item("NM_LNAME").Value)%>, <%=(Recordset1.Fields.Item("NM_FNAME").Value)%></td><br /> <td><%=(Recordset1.Fields.Item("NM_HSTR").Value)%></td><br /> <td><%=(Recordset1.Fields.Item("NM_HCTY").Value)%></TD><br /> </tr><br /><%<br /> Recordset1.MoveNext();<br />}<br />%><br /></font></table><br />

Reply With Quote
  #2  
Old May 8th, 2001, 07:11 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,578 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
<i><b>Originally posted by : (indigo@mail.gr)</b></i><br />This is pure html stuff Alicia..<br /><br />You have 2 options. First in, in each <TD> add the following<br /><br /> <td><FONT SIZE="-1"><%=(Recordset1.Fields.Item......<br /><br />or create a stylesheet (i suggest you take that approach)<br /><br />for example..<br /><br /><style><br /> .tabledata { Font-size: 10px }<br /></style> <br /><br />and then change your data td's to<br /><br /><TD class="tabledata"><br /><br />..this way any change in the style will update all td's referencing this class..<br /><br />------------<br />Alicia at 5/2/2001 4:40:10 PM<br /><br />This should be easy...I'm placing data from a record set into an html table and would like to make the font size in the table smaller. I don't think I can control this in the html code, but need to do so in the ASP code. Does anyone know how to do this?<br /><br />My code: (The font tag after the table tag isn't doing anything. The text in the table doesn't change if I change the size variable.)<br /><br /><table width="100%" border="0"><font size=1><br /><tr><br /> <td>Emp#</td><td>Name</td><td>Street Addr</td><td>City</td><td>State</td><td>Zip</td><td>Country</td><td>Phone</td><td>Start Date</td><td>Gender</td></tr> <br /><tr> <br /> <% while (!Recordset1.EOF) { %><br /> <td><%=(Recordset1.Fields.Item("NM_IDNO").Value)%></td><br /> <td><%=(Recordset1.Fields.Item("NM_LNAME").Value)%>, <%=(Recordset1.Fields.Item("NM_FNAME").Value)%></td><br /> <td><%=(Recordset1.Fields.Item("NM_HSTR").Value)%></td><br /> <td><%=(Recordset1.Fields.Item("NM_HCTY").Value)%></TD><br /> </tr><br /><%<br /> Recordset1.MoveNext();<br />}<br />%><br /></font></table><br />

Reply With Quote
Reply

Viewing: ASP Free ForumsProgramming.NET Development > Font Size


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway