Good morning all, How would I set the first column of table to certain width let's say @max-width 30em ? I don't mind that the company name wraps but the next column has phone number and I don't want this to wrap. Here's the link...
I think first-child or first of type would work. On iPad at the mo but think that should do the trick.
So
tr td:first-child { max-width: Xxx; }
Edit: Yes it works.
@andy_unleash, it didn't work for me Andy, but after playing around I came up with this:
tbody > tr > th:first-child { width: 25%; }
and it works
@jurotek - were it Max width what you're using would just change the column title box though, rather than the entire column.
Good morning all, How would I set the first column of table to certain width let's say @max-width 30em ? I don't mind that the company name wraps but the next column has phone number and I don't want this to wrap. Here's the link...
I think first-child or first of type would work. On iPad at the mo but think that should do the trick.
So
Edit: Yes it works.
@andy_unleash, it didn't work for me Andy, but after playing around I came up with this:
and it works
@jurotek - were it Max width what you're using would just change the column title box though, rather than the entire column.