Possible to have one fixed width cell in Zurb Foundation 5 grid?












0















Is it possible to set a cell/column in Zurb Foundation to have a minimum width?
The cell contains a list and some of the items in that list are wrapping and I would like to prevent that. NoWrap keeps them from wrapping but they then overlap the next column's content.










share|improve this question





























    0















    Is it possible to set a cell/column in Zurb Foundation to have a minimum width?
    The cell contains a list and some of the items in that list are wrapping and I would like to prevent that. NoWrap keeps them from wrapping but they then overlap the next column's content.










    share|improve this question



























      0












      0








      0








      Is it possible to set a cell/column in Zurb Foundation to have a minimum width?
      The cell contains a list and some of the items in that list are wrapping and I would like to prevent that. NoWrap keeps them from wrapping but they then overlap the next column's content.










      share|improve this question
















      Is it possible to set a cell/column in Zurb Foundation to have a minimum width?
      The cell contains a list and some of the items in that list are wrapping and I would like to prevent that. NoWrap keeps them from wrapping but they then overlap the next column's content.







      css zurb-foundation






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 15 '18 at 21:04







      John S

















      asked Nov 8 '18 at 14:38









      John SJohn S

      3,6771456109




      3,6771456109
























          2 Answers
          2






          active

          oldest

          votes


















          0














          It is not possible in Zurb Foundation 5, only in version 6 with the XY Grid.
          However you could use css instead of the grid classes to have the result you want.






          share|improve this answer































            0














            I'm assuming by 'Foundation Grid' you're referring to their 'XY Grid'... if that's the case one possible solution for you without having to add any additional CSS/SCSS or media queries would be to use the 'shrink' and 'auto' classes on your cells (see code below). Using the 'shrink' class with your cell/column will keep that cell at the width of the longest content (in your case an unordered/ordered list) while auto adjusting to fill the remaining width of the viewport with the remaining cell(s)/column(s) within that grid-x row. If you want the cells/columns to stack on <= medium viewport sizes you simply change the 'medium-[shrink or auto]' to 'large-[shrink or auto]'. For further info, see the Zurb XY Grid 'Auto Sizing' section here.



            <div class="grid-x grid-margin-x">
            <div class="cell medium-shrink">
            <ul>
            <li>No wrapping list item here that has longer content so it will be wider</li>
            <li>No wrapping list item here that has long content</li>
            <li>No wrapping list item here that has long content</li>
            </ul>
            </div>
            <div class="cell medium-auto">
            Expanded content would be here that fills in the rest of the viewport from >= medium viewport size and then stacks on small viewport size.
            </div>
            </div>





            share|improve this answer
























            • Yes that looks correct for 6. I neglected to mention that I am using Foundation 5 rather then 6

              – John S
              Nov 15 '18 at 21:03











            Your Answer






            StackExchange.ifUsing("editor", function () {
            StackExchange.using("externalEditor", function () {
            StackExchange.using("snippets", function () {
            StackExchange.snippets.init();
            });
            });
            }, "code-snippets");

            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "1"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53209969%2fpossible-to-have-one-fixed-width-cell-in-zurb-foundation-5-grid%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            It is not possible in Zurb Foundation 5, only in version 6 with the XY Grid.
            However you could use css instead of the grid classes to have the result you want.






            share|improve this answer




























              0














              It is not possible in Zurb Foundation 5, only in version 6 with the XY Grid.
              However you could use css instead of the grid classes to have the result you want.






              share|improve this answer


























                0












                0








                0







                It is not possible in Zurb Foundation 5, only in version 6 with the XY Grid.
                However you could use css instead of the grid classes to have the result you want.






                share|improve this answer













                It is not possible in Zurb Foundation 5, only in version 6 with the XY Grid.
                However you could use css instead of the grid classes to have the result you want.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 20 '18 at 16:30









                Marine D.Marine D.

                162




                162

























                    0














                    I'm assuming by 'Foundation Grid' you're referring to their 'XY Grid'... if that's the case one possible solution for you without having to add any additional CSS/SCSS or media queries would be to use the 'shrink' and 'auto' classes on your cells (see code below). Using the 'shrink' class with your cell/column will keep that cell at the width of the longest content (in your case an unordered/ordered list) while auto adjusting to fill the remaining width of the viewport with the remaining cell(s)/column(s) within that grid-x row. If you want the cells/columns to stack on <= medium viewport sizes you simply change the 'medium-[shrink or auto]' to 'large-[shrink or auto]'. For further info, see the Zurb XY Grid 'Auto Sizing' section here.



                    <div class="grid-x grid-margin-x">
                    <div class="cell medium-shrink">
                    <ul>
                    <li>No wrapping list item here that has longer content so it will be wider</li>
                    <li>No wrapping list item here that has long content</li>
                    <li>No wrapping list item here that has long content</li>
                    </ul>
                    </div>
                    <div class="cell medium-auto">
                    Expanded content would be here that fills in the rest of the viewport from >= medium viewport size and then stacks on small viewport size.
                    </div>
                    </div>





                    share|improve this answer
























                    • Yes that looks correct for 6. I neglected to mention that I am using Foundation 5 rather then 6

                      – John S
                      Nov 15 '18 at 21:03
















                    0














                    I'm assuming by 'Foundation Grid' you're referring to their 'XY Grid'... if that's the case one possible solution for you without having to add any additional CSS/SCSS or media queries would be to use the 'shrink' and 'auto' classes on your cells (see code below). Using the 'shrink' class with your cell/column will keep that cell at the width of the longest content (in your case an unordered/ordered list) while auto adjusting to fill the remaining width of the viewport with the remaining cell(s)/column(s) within that grid-x row. If you want the cells/columns to stack on <= medium viewport sizes you simply change the 'medium-[shrink or auto]' to 'large-[shrink or auto]'. For further info, see the Zurb XY Grid 'Auto Sizing' section here.



                    <div class="grid-x grid-margin-x">
                    <div class="cell medium-shrink">
                    <ul>
                    <li>No wrapping list item here that has longer content so it will be wider</li>
                    <li>No wrapping list item here that has long content</li>
                    <li>No wrapping list item here that has long content</li>
                    </ul>
                    </div>
                    <div class="cell medium-auto">
                    Expanded content would be here that fills in the rest of the viewport from >= medium viewport size and then stacks on small viewport size.
                    </div>
                    </div>





                    share|improve this answer
























                    • Yes that looks correct for 6. I neglected to mention that I am using Foundation 5 rather then 6

                      – John S
                      Nov 15 '18 at 21:03














                    0












                    0








                    0







                    I'm assuming by 'Foundation Grid' you're referring to their 'XY Grid'... if that's the case one possible solution for you without having to add any additional CSS/SCSS or media queries would be to use the 'shrink' and 'auto' classes on your cells (see code below). Using the 'shrink' class with your cell/column will keep that cell at the width of the longest content (in your case an unordered/ordered list) while auto adjusting to fill the remaining width of the viewport with the remaining cell(s)/column(s) within that grid-x row. If you want the cells/columns to stack on <= medium viewport sizes you simply change the 'medium-[shrink or auto]' to 'large-[shrink or auto]'. For further info, see the Zurb XY Grid 'Auto Sizing' section here.



                    <div class="grid-x grid-margin-x">
                    <div class="cell medium-shrink">
                    <ul>
                    <li>No wrapping list item here that has longer content so it will be wider</li>
                    <li>No wrapping list item here that has long content</li>
                    <li>No wrapping list item here that has long content</li>
                    </ul>
                    </div>
                    <div class="cell medium-auto">
                    Expanded content would be here that fills in the rest of the viewport from >= medium viewport size and then stacks on small viewport size.
                    </div>
                    </div>





                    share|improve this answer













                    I'm assuming by 'Foundation Grid' you're referring to their 'XY Grid'... if that's the case one possible solution for you without having to add any additional CSS/SCSS or media queries would be to use the 'shrink' and 'auto' classes on your cells (see code below). Using the 'shrink' class with your cell/column will keep that cell at the width of the longest content (in your case an unordered/ordered list) while auto adjusting to fill the remaining width of the viewport with the remaining cell(s)/column(s) within that grid-x row. If you want the cells/columns to stack on <= medium viewport sizes you simply change the 'medium-[shrink or auto]' to 'large-[shrink or auto]'. For further info, see the Zurb XY Grid 'Auto Sizing' section here.



                    <div class="grid-x grid-margin-x">
                    <div class="cell medium-shrink">
                    <ul>
                    <li>No wrapping list item here that has longer content so it will be wider</li>
                    <li>No wrapping list item here that has long content</li>
                    <li>No wrapping list item here that has long content</li>
                    </ul>
                    </div>
                    <div class="cell medium-auto">
                    Expanded content would be here that fills in the rest of the viewport from >= medium viewport size and then stacks on small viewport size.
                    </div>
                    </div>






                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Nov 14 '18 at 21:46









                    nthompson777nthompson777

                    12




                    12













                    • Yes that looks correct for 6. I neglected to mention that I am using Foundation 5 rather then 6

                      – John S
                      Nov 15 '18 at 21:03



















                    • Yes that looks correct for 6. I neglected to mention that I am using Foundation 5 rather then 6

                      – John S
                      Nov 15 '18 at 21:03

















                    Yes that looks correct for 6. I neglected to mention that I am using Foundation 5 rather then 6

                    – John S
                    Nov 15 '18 at 21:03





                    Yes that looks correct for 6. I neglected to mention that I am using Foundation 5 rather then 6

                    – John S
                    Nov 15 '18 at 21:03


















                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53209969%2fpossible-to-have-one-fixed-width-cell-in-zurb-foundation-5-grid%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Florida Star v. B. J. F.

                    Error while running script in elastic search , gateway timeout

                    Adding quotations to stringified JSON object values