MyBB Community Forums

Full Version: Adjust the table width, and coding for the alignment
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hello everyone, I have a question here, how can i adjust the table header width?

[table=80]
[tr][th]Subject[/th][th]Details[/th][/tr]
[tr][td]Revision date[/td][td]03/01/2022[/td][/tr]
[tr][td]Issued by[/td][td]HR & Admin Department[/td][/tr]
[tr][td]Approved by[/td][td]Director[/td][/tr]
[/table]

[attachment=46230]

I have tried the following but to no avail:

[table=80]
[tr][th width=80]Subject[/th][th width=300]Details[/th][/tr]
[tr][td width=25% align=center]Revision date[/td][td width=75% align=left]03/01/2022[/td][/tr]
[tr][td]Issued by[/td][td]HR & Admin Department[/td][/tr]
[tr][td]Approved by[/td][td]Director[/td][/tr]
[/table]

Apart from using [align<=>center]Subject[/align] for center alignment, I read somewhere someone using [td width=25% align=center]XXXXX[/td]. Is that can be done by writing a code on mycode? If so, can someone shed me some light? What format or coding should i use to phrase it correctly?

Appreciate much. Thanks in advance.