Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Apr 2012
    Location
    St. Louis, MO
    Posts
    985
    Thanks
    7
    Thanked 101 Times in 101 Posts

    Lock table cells to 50% width - no exception

    Hello, everyone.

    I've got a dynamic site that I'm working on, and I'm trying to lock two table cells that are next to each other so that they will lock rigidly at 50% of the width of the table.

    Sometimes the cell on the right will have an unbroken string of data, forcing it to take 80% of the width, squeezing the left cell.

    How can I prevent this from happening? I've set the CSS properties of the class to:
    Code:
    width:50% !important; min-width:50% !important; max-width:50% !important;
    .. but it's not working.

    Thank you,
    Last edited by WolfShade; 11-15-2012 at 09:58 PM.
    ^_^

    If anyone knows of a website that can offer ColdFusion help that isn't controlled by neurotic, pedantic jerks* (stackoverflow.com), please PM me with a link.
    *
    The neurotic, pedantic jerks are not the owners; just the people who are in control of the "popularity contest".

  • #2
    Regular Coder
    Join Date
    Apr 2012
    Location
    St. Louis, MO
    Posts
    985
    Thanks
    7
    Thanked 101 Times in 101 Posts
    I added style="table-layout:fixed;" to the table and that fixed it.
    ^_^

    If anyone knows of a website that can offer ColdFusion help that isn't controlled by neurotic, pedantic jerks* (stackoverflow.com), please PM me with a link.
    *
    The neurotic, pedantic jerks are not the owners; just the people who are in control of the "popularity contest".


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •