Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Table column & media query

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #41765
    jurotek
    Participant

    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…](http://codepen.io/jiri/collab/Emywb “”)

    #119899
    Andy Howells
    Participant

    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.

    #119932
    Andy Howells
    Participant

    @jurotek – were it Max width what you’re using would just change the column title box though, rather than the entire column.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.