Avada Forums Community Forum Fixed Width Columns in PX Reply To: Fixed Width Columns in PX

Thonex
Participant
Post count: 5

OK… I found this TEDIOUS “workaround” but there MUST be an easier way to have a fixed column width… no?

Here is what I did.

1) Add a 1 cell 250px width table inside a (say) 1/3 width column by adding this code to a text block (this HTLM code includes my woocommerce shortcode:

HTML:

<table class="WCTable">
<tbody>
<tr>
<td><center>
[add_to_cart sku="333" style="color: white;"]</center></td>
</tr>
</tbody>
</table>

And I had to add this CSS code to the page’s CSS field:

CSS:


table.WCTable {
  width: 250px;
}
table.WCTable td, table.WCTable th {
}

Honestly… there must be a more native Avada way to do this… no?

Thanks for any help.

Cheers,

Andrew K

  • This reply was modified 1 month, 3 weeks ago by Thonex.