Answers for "how to adjust table size in html"

0

How to increase the cell size in table in html?

<table width = 80% height = 50%> <!-- You can set the height and width by using the height and width attributes with table tag and writing the size in %age (percentage). -->
	<tr align="center">
      <th>Question</th>
      <th>Answer</th>
	</tr>
  <tr>
    <td>1 + 1 = </td>
    <td>2</td>
  </tr>
  <tr>
    <td>2 + 2 = </td>
    <td>4</td>
  </tr>
</table>

<!-- You can try this in your code editor by copying this to your code editor -->
<!-- Thank you if this helped you and Sorry if it didn't worked for you -->
Posted by: Guest on October-24-2020
1

give table width 100%

<table style = "width:100%">
          <tr>
              <th>A</th>
              <th>B</th>
              <th>C</th>
          </tr>
          <tr>
          	<tb>a</tb>
          	<tb>b</tb>
          	<tb>c</tb>
          </tr>
      </table>
Posted by: Guest on July-09-2021

Browse Popular Code Answers by Language