Help: Adjust table width in HTML

Does Appsheet allow adjusting the width of the <table> </table> tag in the html of the Longtext data type?

Screenshot 2024-03-21 112427.png

Here is my HTML code

Screenshot 2024-03-21 154947.png

Solved Solved
0 6 133
3 ACCEPTED SOLUTIONS

if understanding of your requirement is correct, you would like to increase the space of the first column so that the second and third column are pushed further. If , so please try to add a white space in the first table header tag.

So currently your HTML code is as follows

"<table>
<tr>


<th></th>
<th>Nam 2023</th>
<th>Nam 2024</th>

</tr>

.............................

</table>

 

Instead make the code as below. Add whitespace in between.

"<table>
<tr>
<th>โ€‡โ€‡โ€‡โ€‡โ€‡โ€‡โ€‡โ€‡</th>
<th>Nam 2023</th>
<th>Nam 2024</th>

</tr>

..................................................


</table>

 Please add a whitespace in the  first table header element. Please add sufficient white  space to extend the width of the column as much as required. Please use the figure space white space character from the Wikipedia article as described in the post below,

https://www.googlecloudcommunity.com/gc/Tips-Tricks/Choosing-walls-that-should-be-calculated-with-En...

Result before adding white space:

Suvrutt_Gurjar_2-1711016567292.png

Result after adding white space:

Suvrutt_Gurjar_0-1711016451633.png

 

 

View solution in original post

Could you elaborate? Do you mean wrapping the column contents?  If so, I believe that may not be currently possible in a straightforward way because many tags and CSS styles are still not supported in HTML long text column..

View solution in original post

As mentioned in earlier post, to narrow the contents of a cell , you may need to wrap the text which will require CSS style or you could shorten the text string length. Currently CSS and styles are not supported in the HTML long text column.

Please see the allowed tags.

Rich Text Formatting - in Preview Program - Google Cloud Community

Maybe someone else has a better guidance for you for wrapping the text.

 

View solution in original post

6 REPLIES 6

if understanding of your requirement is correct, you would like to increase the space of the first column so that the second and third column are pushed further. If , so please try to add a white space in the first table header tag.

So currently your HTML code is as follows

"<table>
<tr>


<th></th>
<th>Nam 2023</th>
<th>Nam 2024</th>

</tr>

.............................

</table>

 

Instead make the code as below. Add whitespace in between.

"<table>
<tr>
<th>โ€‡โ€‡โ€‡โ€‡โ€‡โ€‡โ€‡โ€‡</th>
<th>Nam 2023</th>
<th>Nam 2024</th>

</tr>

..................................................


</table>

 Please add a whitespace in the  first table header element. Please add sufficient white  space to extend the width of the column as much as required. Please use the figure space white space character from the Wikipedia article as described in the post below,

https://www.googlecloudcommunity.com/gc/Tips-Tricks/Choosing-walls-that-should-be-calculated-with-En...

Result before adding white space:

Suvrutt_Gurjar_2-1711016567292.png

Result after adding white space:

Suvrutt_Gurjar_0-1711016451633.png

 

 

Thank you for your help.
What about narrowing the columns?

Could you elaborate? Do you mean wrapping the column contents?  If so, I believe that may not be currently possible in a straightforward way because many tags and CSS styles are still not supported in HTML long text column..

There are some columns that are too long so I want to narrow the column width

Screenshot 2024-03-21 112427.png

As mentioned in earlier post, to narrow the contents of a cell , you may need to wrap the text which will require CSS style or you could shorten the text string length. Currently CSS and styles are not supported in the HTML long text column.

Please see the allowed tags.

Rich Text Formatting - in Preview Program - Google Cloud Community

Maybe someone else has a better guidance for you for wrapping the text.

 

Thanks for your reply

Top Labels in this Space