Avada Forums Community Forum Fixed Width Columns in PX

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • Thonex
    Participant
    Post count: 5

    Hi there,

    Is there any way/trick to get Avada to have a single centered column to have a fixed width in px? I am using WooCommerce shortcodes and the layout changes as the columns widen. So a simple (say) 250 px wide column would fix all my issues.

    Any ideas? I’ve seen other requests for fixed width columns for other reasons, but have seen no answers. Hoping for one here.

    Thanks for any help.

    Cheers,

    Andrew K

    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, 2 weeks ago by Thonex.
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.