how to set font size inside HTML control?

legendgod

Regular
Joined
May 17, 2004
Messages
53
Location
Hong Kong
I have a table and use HtmlTableRow, HtmlTableCell to make up a table and fill up the content. Now I need to make a function to change the font size according to user choice.
Except add up a quot like "<id style=XXX></id>", what syntax I can use, without add up the code line by line?
Thank you! ;)
 
I would use a css file and aply a style to the cells.
Like this:

Code:
          Dim MyRow As HtmlControls.HtmlTableRow
          Dim MyCell As HtmlTableCell

            For Each MyRow In MyTable.Rows
                For Each MyCell In MyRow.Cells
                    MyCell.Attributes("class") = "mystyle"
                Next
            Next

I guess it should work.
 
Cassio said:
I would use a css file and aply a style to the cells.
Like this:

Code:
          Dim MyRow As HtmlControls.HtmlTableRow
          Dim MyCell As HtmlTableCell

            For Each MyRow In MyTable.Rows
                For Each MyCell In MyRow.Cells
                    MyCell.Attributes("class") = "mystyle"
                Next
            Next

I guess it should work.
I got it. Thanks a lot.
 
Back
Top