3

I want to have two different font sizes within one block. How can I make "The Falcon Family" size 20pt and "The Falcon fam is from..." size 15pt and still be one table data.

<html>
  <head>
  <table border= "20" borderColor = "#71a14d" bgcolor= "#d1e83f">
     <td colspan="7" style="font-size:20pt"> The Falcon Family</br>
     The Falcon fam is from Russia they are nomads traveling through out the world.</td>
  </table>
  </body>
</html>

2 Answers2

2

just wrap the second part in a span and add style

  <table border= "20" borderColor = "#71a14d" bgcolor= "#d1e83f">
  <tr>
     <td colspan="7" style="font-size:20pt"> The Falcon Family<br>
     <span style="font-size:15pt"> The Falcon fam is from Russia they are nomads traveling through out the world.</span></td>
     </tr>
  </table>
 
DCR
  • 14,737
  • 12
  • 52
  • 115
1

I think you can do like this.

<html>
  <body>
  <table border= "20" borderColor = "#71a14d" bgcolor= "#d1e83f">
     <td colspan="7" style="font-size:20pt"> The Falcon Family
        <div style="font-size: 15pt;">The Falcon fam is from Russia they are nomads traveling through out the world.</div></td>
  </table>
  </body>
</html>
Sato Takeru
  • 1,669
  • 4
  • 12
  • 27