|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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 />
|
|
#2
|
|||
|
|||
|
<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 />
|
![]() |
| Viewing: ASP Free Forums > Programming > .NET Development > Font Size |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|