Forums

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

Home Forums CSS Ignore last child with flex:nowrap;

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #288485
    ainsley_clark
    Participant

    Hi all,

    implementing some pure CSS tabs and trying to add a flex nowrap to the children so I can apply an overflow-x: auto to the tabs, however the last child (tabs-panel) should be able to stretch at full width.

    Its quite tricky because I have to preserve the markup.

    Codepen is attached, you will see what I mean,

    Many thanks in advance.

    https://codepen.io/ainsleyclark/pen/LoBgwR

    #288509
    uxfed
    Participant

    I don’t think I understand the issue – it looks pretty good – but I’ll point out the correct style is nowrap, not no-wrap.

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