Answers for "table data width"

0

table td data in middle

vertical-align: middle
Posted by: Guest on November-26-2020
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
0

data table column width

$('#example').dataTable({
  "columnDefs": [    
    { "width": "20%", "targets": 0 }  
  ]} 
);
Posted by: Guest on June-01-2021
0

how to set table data width in css

<table>
  <tr>
    <th>header 1</th>
    <th>header 234567895678657</th>
  </tr>
  <tr>
    <td>data asdfasdfddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddasdfasdfasdf</td>
    <td>data 2</td>
  </tr>
</table>
Posted by: Guest on August-18-2021

Browse Popular Code Answers by Language