CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   HTML & CSS (http://www.codingforums.com/forumdisplay.php?f=13)
-   -   Resolved Lock table cells to 50% width - no exception (http://www.codingforums.com/showthread.php?t=282288)

WolfShade 11-15-2012 09:34 PM

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,

WolfShade 11-15-2012 09:57 PM

I added style="table-layout:fixed;" to the table and that fixed it.


All times are GMT +1. The time now is 02:51 PM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.