Change body of table according to the screenBootstrap3 .visible-* .hidden-* display inlineMake a div fill the height of the remaining screen spaceAdd table row in jQueryWord-wrap in an HTML tableChange an HTML5 input's placeholder color with CSSFluid or fixed grid system, in responsive design, based on Twitter BootstrapIs there an equivalent to background-size: cover and contain for image elements?Bootstrap - Removing padding or margin when screen size is smallerChange navbar color in Twitter BootstrapBootstrap3 .visible-* .hidden-* display inlineBootstrap responsiveness not according to screen size

Are there any plans for handling people floating away during an EVA?

Why don't we use Cavea-B

Was Tuvok bluffing when he said that Voyager's transporters rendered the Kazon weapons useless?

How to persuade recruiters to send me the Job Description?

How to create a summation symbol with a vertical bar?

Is "stainless" a bulk or a surface property of stainless steel?

Chess software to analyze games

Why didn’t Doctor Strange stay in the original winning timeline?

Is there such a thing as too inconvenient?

Can my boyfriend, who lives in the UK and has a Polish passport, visit me in the USA?

Don't understand MOSFET as amplifier

How to dismiss intrusive questions from a colleague with whom I don't work?

Why we don't have vaccination against all diseases which are caused by microbes?

Why is Boris Johnson visiting only Paris & Berlin if every member of the EU needs to agree on a withdrawal deal?

Is it insecure to have an ansible user with passwordless sudo?

Vacuum collapse -- why do strong metals implode but glass doesn't?

Most practical knots for hitching a line to an object while keeping the bitter end as tight as possible, without sag?

How does turbine efficiency compare with internal combustion engines if all the turbine power is converted to mechanical energy?

In an emergency, how do I find and share my position?

How can I support the recycling, but not the new production of aluminum?

Sleeping solo in a double sleeping bag

(Why) May a Beit Din refuse to bury a body in order to coerce a man into giving a divorce?

Have only girls been born for a long time in this village?

How do you call it when two celestial bodies come as close to each other as they will in their current orbits?



Change body of table according to the screen


Bootstrap3 .visible-* .hidden-* display inlineMake a div fill the height of the remaining screen spaceAdd table row in jQueryWord-wrap in an HTML tableChange an HTML5 input's placeholder color with CSSFluid or fixed grid system, in responsive design, based on Twitter BootstrapIs there an equivalent to background-size: cover and contain for image elements?Bootstrap - Removing padding or margin when screen size is smallerChange navbar color in Twitter BootstrapBootstrap3 .visible-* .hidden-* display inlineBootstrap responsiveness not according to screen size






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








2















I am using bootstrap 3, I have a table that must change the body according to the size of the screen. Look about the css rules (@media), it's an option but I wanted it to work like the responsive table so I do not have to indicate what the size is but it only identifies if the columns do not fit the current size of the screen



<table>
<thead>
<tr class="fullScreen">
...
</tr>
<tr class="smartScreen">
...
</tr>
</thead>
<tbody>
<tr class="fullScreen">
...
</tr>
<tr class="smartScreen">
...
</tr>
</tbody>
</table>









share|improve this question





















  • 2





    Please share your code.

    – Arkellys
    Mar 27 at 15:14











  • If, you can not show all the columns that are inside "fullscreen" then show "smartscreen"

    – Federico Fia Sare
    Mar 27 at 15:25

















2















I am using bootstrap 3, I have a table that must change the body according to the size of the screen. Look about the css rules (@media), it's an option but I wanted it to work like the responsive table so I do not have to indicate what the size is but it only identifies if the columns do not fit the current size of the screen



<table>
<thead>
<tr class="fullScreen">
...
</tr>
<tr class="smartScreen">
...
</tr>
</thead>
<tbody>
<tr class="fullScreen">
...
</tr>
<tr class="smartScreen">
...
</tr>
</tbody>
</table>









share|improve this question





















  • 2





    Please share your code.

    – Arkellys
    Mar 27 at 15:14











  • If, you can not show all the columns that are inside "fullscreen" then show "smartscreen"

    – Federico Fia Sare
    Mar 27 at 15:25













2












2








2








I am using bootstrap 3, I have a table that must change the body according to the size of the screen. Look about the css rules (@media), it's an option but I wanted it to work like the responsive table so I do not have to indicate what the size is but it only identifies if the columns do not fit the current size of the screen



<table>
<thead>
<tr class="fullScreen">
...
</tr>
<tr class="smartScreen">
...
</tr>
</thead>
<tbody>
<tr class="fullScreen">
...
</tr>
<tr class="smartScreen">
...
</tr>
</tbody>
</table>









share|improve this question
















I am using bootstrap 3, I have a table that must change the body according to the size of the screen. Look about the css rules (@media), it's an option but I wanted it to work like the responsive table so I do not have to indicate what the size is but it only identifies if the columns do not fit the current size of the screen



<table>
<thead>
<tr class="fullScreen">
...
</tr>
<tr class="smartScreen">
...
</tr>
</thead>
<tbody>
<tr class="fullScreen">
...
</tr>
<tr class="smartScreen">
...
</tr>
</tbody>
</table>






css twitter-bootstrap-3 html-table responsive-design






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 27 at 15:21







Federico Fia Sare

















asked Mar 27 at 15:07









Federico Fia SareFederico Fia Sare

5910 bronze badges




5910 bronze badges










  • 2





    Please share your code.

    – Arkellys
    Mar 27 at 15:14











  • If, you can not show all the columns that are inside "fullscreen" then show "smartscreen"

    – Federico Fia Sare
    Mar 27 at 15:25












  • 2





    Please share your code.

    – Arkellys
    Mar 27 at 15:14











  • If, you can not show all the columns that are inside "fullscreen" then show "smartscreen"

    – Federico Fia Sare
    Mar 27 at 15:25







2




2





Please share your code.

– Arkellys
Mar 27 at 15:14





Please share your code.

– Arkellys
Mar 27 at 15:14













If, you can not show all the columns that are inside "fullscreen" then show "smartscreen"

– Federico Fia Sare
Mar 27 at 15:25





If, you can not show all the columns that are inside "fullscreen" then show "smartscreen"

– Federico Fia Sare
Mar 27 at 15:25












2 Answers
2






active

oldest

votes


















1














If you are using bootstrap 3.3.7 then this code will help you,
you just put class="table table-responsive" in your table tag. The table will be responsive.



<style>
.table-responsive
border: 0px !important;
</style>



<body>
<table class="table table-responsive">
<thead>
<tr>
<td> col 1 </td>
<td> col 2 </td>
</tr>
<tr class="smartScreen">
<td> col 1 </td>
<td> col 2 </td>
</tr>
</thead>
<tbody>
<tr class="fullScreen">
<td> col 1 </td>
<td> col 2 </td>
</tr>
<tr class="smartScreen">
<td> col 1 </td>
<td> col 2 </td>
</tr>
</tbody>







share|improve this answer


































    0














    Display property should work.



    Display property https://getbootstrap.com/docs/4.0/utilities/display



    How it works



    Change the value of the display property with our responsive display utility classes. We purposely support only a subset of all possible values for display. Classes can be combined for various effects as you need.



    Hiding elements



    Hidden on all .d-none
    Hidden only on xs .d-none .d-sm-block
    Hidden only on sm .d-sm-none .d-md-block
    Hidden only on md .d-md-none .d-lg-block
    Hidden only on lg .d-lg-none .d-xl-block
    Hidden only on xl .d-xl-none
    Visible on all .d-block
    Visible only on xs .d-block .d-sm-none
    Visible only on sm .d-none .d-sm-block .d-md-none
    Visible only on md .d-none .d-md-block .d-lg-none
    Visible only on lg .d-none .d-lg-block .d-xl-none
    Visible only on xl .d-none .d-xl-block





    share|improve this answer



























    • i don't talk about of grid system, i want that only one is shown

      – Federico Fia Sare
      Mar 27 at 19:47











    • Check this out getbootstrap.com/docs/4.0/utilities/display

      – endormi
      Mar 28 at 7:27











    • If this works, could you click the mark to show that this is the correct answer?

      – endormi
      Apr 1 at 13:17











    • The answer refers to bootstrap 4 and the question indicates that bootstrap 3 is used

      – Federico Fia Sare
      Apr 3 at 0:23











    • Oops, sorry. Bootstrap 3 apparently has for example .visible-lg. This question might help stackoverflow.com/questions/19098376/…

      – endormi
      Apr 3 at 11:44














    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%2f55380489%2fchange-body-of-table-according-to-the-screen%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









    1














    If you are using bootstrap 3.3.7 then this code will help you,
    you just put class="table table-responsive" in your table tag. The table will be responsive.



    <style>
    .table-responsive
    border: 0px !important;
    </style>



    <body>
    <table class="table table-responsive">
    <thead>
    <tr>
    <td> col 1 </td>
    <td> col 2 </td>
    </tr>
    <tr class="smartScreen">
    <td> col 1 </td>
    <td> col 2 </td>
    </tr>
    </thead>
    <tbody>
    <tr class="fullScreen">
    <td> col 1 </td>
    <td> col 2 </td>
    </tr>
    <tr class="smartScreen">
    <td> col 1 </td>
    <td> col 2 </td>
    </tr>
    </tbody>







    share|improve this answer































      1














      If you are using bootstrap 3.3.7 then this code will help you,
      you just put class="table table-responsive" in your table tag. The table will be responsive.



      <style>
      .table-responsive
      border: 0px !important;
      </style>



      <body>
      <table class="table table-responsive">
      <thead>
      <tr>
      <td> col 1 </td>
      <td> col 2 </td>
      </tr>
      <tr class="smartScreen">
      <td> col 1 </td>
      <td> col 2 </td>
      </tr>
      </thead>
      <tbody>
      <tr class="fullScreen">
      <td> col 1 </td>
      <td> col 2 </td>
      </tr>
      <tr class="smartScreen">
      <td> col 1 </td>
      <td> col 2 </td>
      </tr>
      </tbody>







      share|improve this answer





























        1












        1








        1







        If you are using bootstrap 3.3.7 then this code will help you,
        you just put class="table table-responsive" in your table tag. The table will be responsive.



        <style>
        .table-responsive
        border: 0px !important;
        </style>



        <body>
        <table class="table table-responsive">
        <thead>
        <tr>
        <td> col 1 </td>
        <td> col 2 </td>
        </tr>
        <tr class="smartScreen">
        <td> col 1 </td>
        <td> col 2 </td>
        </tr>
        </thead>
        <tbody>
        <tr class="fullScreen">
        <td> col 1 </td>
        <td> col 2 </td>
        </tr>
        <tr class="smartScreen">
        <td> col 1 </td>
        <td> col 2 </td>
        </tr>
        </tbody>







        share|improve this answer















        If you are using bootstrap 3.3.7 then this code will help you,
        you just put class="table table-responsive" in your table tag. The table will be responsive.



        <style>
        .table-responsive
        border: 0px !important;
        </style>



        <body>
        <table class="table table-responsive">
        <thead>
        <tr>
        <td> col 1 </td>
        <td> col 2 </td>
        </tr>
        <tr class="smartScreen">
        <td> col 1 </td>
        <td> col 2 </td>
        </tr>
        </thead>
        <tbody>
        <tr class="fullScreen">
        <td> col 1 </td>
        <td> col 2 </td>
        </tr>
        <tr class="smartScreen">
        <td> col 1 </td>
        <td> col 2 </td>
        </tr>
        </tbody>








        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Jul 19 at 14:09









        stats0007

        2,0302 gold badges13 silver badges31 bronze badges




        2,0302 gold badges13 silver badges31 bronze badges










        answered Jul 19 at 12:26









        SandeepSandeep

        33610 bronze badges




        33610 bronze badges


























            0














            Display property should work.



            Display property https://getbootstrap.com/docs/4.0/utilities/display



            How it works



            Change the value of the display property with our responsive display utility classes. We purposely support only a subset of all possible values for display. Classes can be combined for various effects as you need.



            Hiding elements



            Hidden on all .d-none
            Hidden only on xs .d-none .d-sm-block
            Hidden only on sm .d-sm-none .d-md-block
            Hidden only on md .d-md-none .d-lg-block
            Hidden only on lg .d-lg-none .d-xl-block
            Hidden only on xl .d-xl-none
            Visible on all .d-block
            Visible only on xs .d-block .d-sm-none
            Visible only on sm .d-none .d-sm-block .d-md-none
            Visible only on md .d-none .d-md-block .d-lg-none
            Visible only on lg .d-none .d-lg-block .d-xl-none
            Visible only on xl .d-none .d-xl-block





            share|improve this answer



























            • i don't talk about of grid system, i want that only one is shown

              – Federico Fia Sare
              Mar 27 at 19:47











            • Check this out getbootstrap.com/docs/4.0/utilities/display

              – endormi
              Mar 28 at 7:27











            • If this works, could you click the mark to show that this is the correct answer?

              – endormi
              Apr 1 at 13:17











            • The answer refers to bootstrap 4 and the question indicates that bootstrap 3 is used

              – Federico Fia Sare
              Apr 3 at 0:23











            • Oops, sorry. Bootstrap 3 apparently has for example .visible-lg. This question might help stackoverflow.com/questions/19098376/…

              – endormi
              Apr 3 at 11:44
















            0














            Display property should work.



            Display property https://getbootstrap.com/docs/4.0/utilities/display



            How it works



            Change the value of the display property with our responsive display utility classes. We purposely support only a subset of all possible values for display. Classes can be combined for various effects as you need.



            Hiding elements



            Hidden on all .d-none
            Hidden only on xs .d-none .d-sm-block
            Hidden only on sm .d-sm-none .d-md-block
            Hidden only on md .d-md-none .d-lg-block
            Hidden only on lg .d-lg-none .d-xl-block
            Hidden only on xl .d-xl-none
            Visible on all .d-block
            Visible only on xs .d-block .d-sm-none
            Visible only on sm .d-none .d-sm-block .d-md-none
            Visible only on md .d-none .d-md-block .d-lg-none
            Visible only on lg .d-none .d-lg-block .d-xl-none
            Visible only on xl .d-none .d-xl-block





            share|improve this answer



























            • i don't talk about of grid system, i want that only one is shown

              – Federico Fia Sare
              Mar 27 at 19:47











            • Check this out getbootstrap.com/docs/4.0/utilities/display

              – endormi
              Mar 28 at 7:27











            • If this works, could you click the mark to show that this is the correct answer?

              – endormi
              Apr 1 at 13:17











            • The answer refers to bootstrap 4 and the question indicates that bootstrap 3 is used

              – Federico Fia Sare
              Apr 3 at 0:23











            • Oops, sorry. Bootstrap 3 apparently has for example .visible-lg. This question might help stackoverflow.com/questions/19098376/…

              – endormi
              Apr 3 at 11:44














            0












            0








            0







            Display property should work.



            Display property https://getbootstrap.com/docs/4.0/utilities/display



            How it works



            Change the value of the display property with our responsive display utility classes. We purposely support only a subset of all possible values for display. Classes can be combined for various effects as you need.



            Hiding elements



            Hidden on all .d-none
            Hidden only on xs .d-none .d-sm-block
            Hidden only on sm .d-sm-none .d-md-block
            Hidden only on md .d-md-none .d-lg-block
            Hidden only on lg .d-lg-none .d-xl-block
            Hidden only on xl .d-xl-none
            Visible on all .d-block
            Visible only on xs .d-block .d-sm-none
            Visible only on sm .d-none .d-sm-block .d-md-none
            Visible only on md .d-none .d-md-block .d-lg-none
            Visible only on lg .d-none .d-lg-block .d-xl-none
            Visible only on xl .d-none .d-xl-block





            share|improve this answer















            Display property should work.



            Display property https://getbootstrap.com/docs/4.0/utilities/display



            How it works



            Change the value of the display property with our responsive display utility classes. We purposely support only a subset of all possible values for display. Classes can be combined for various effects as you need.



            Hiding elements



            Hidden on all .d-none
            Hidden only on xs .d-none .d-sm-block
            Hidden only on sm .d-sm-none .d-md-block
            Hidden only on md .d-md-none .d-lg-block
            Hidden only on lg .d-lg-none .d-xl-block
            Hidden only on xl .d-xl-none
            Visible on all .d-block
            Visible only on xs .d-block .d-sm-none
            Visible only on sm .d-none .d-sm-block .d-md-none
            Visible only on md .d-none .d-md-block .d-lg-none
            Visible only on lg .d-none .d-lg-block .d-xl-none
            Visible only on xl .d-none .d-xl-block






            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Apr 1 at 13:16

























            answered Mar 27 at 17:34









            endormiendormi

            4411 bronze badges




            4411 bronze badges















            • i don't talk about of grid system, i want that only one is shown

              – Federico Fia Sare
              Mar 27 at 19:47











            • Check this out getbootstrap.com/docs/4.0/utilities/display

              – endormi
              Mar 28 at 7:27











            • If this works, could you click the mark to show that this is the correct answer?

              – endormi
              Apr 1 at 13:17











            • The answer refers to bootstrap 4 and the question indicates that bootstrap 3 is used

              – Federico Fia Sare
              Apr 3 at 0:23











            • Oops, sorry. Bootstrap 3 apparently has for example .visible-lg. This question might help stackoverflow.com/questions/19098376/…

              – endormi
              Apr 3 at 11:44


















            • i don't talk about of grid system, i want that only one is shown

              – Federico Fia Sare
              Mar 27 at 19:47











            • Check this out getbootstrap.com/docs/4.0/utilities/display

              – endormi
              Mar 28 at 7:27











            • If this works, could you click the mark to show that this is the correct answer?

              – endormi
              Apr 1 at 13:17











            • The answer refers to bootstrap 4 and the question indicates that bootstrap 3 is used

              – Federico Fia Sare
              Apr 3 at 0:23











            • Oops, sorry. Bootstrap 3 apparently has for example .visible-lg. This question might help stackoverflow.com/questions/19098376/…

              – endormi
              Apr 3 at 11:44

















            i don't talk about of grid system, i want that only one is shown

            – Federico Fia Sare
            Mar 27 at 19:47





            i don't talk about of grid system, i want that only one is shown

            – Federico Fia Sare
            Mar 27 at 19:47













            Check this out getbootstrap.com/docs/4.0/utilities/display

            – endormi
            Mar 28 at 7:27





            Check this out getbootstrap.com/docs/4.0/utilities/display

            – endormi
            Mar 28 at 7:27













            If this works, could you click the mark to show that this is the correct answer?

            – endormi
            Apr 1 at 13:17





            If this works, could you click the mark to show that this is the correct answer?

            – endormi
            Apr 1 at 13:17













            The answer refers to bootstrap 4 and the question indicates that bootstrap 3 is used

            – Federico Fia Sare
            Apr 3 at 0:23





            The answer refers to bootstrap 4 and the question indicates that bootstrap 3 is used

            – Federico Fia Sare
            Apr 3 at 0:23













            Oops, sorry. Bootstrap 3 apparently has for example .visible-lg. This question might help stackoverflow.com/questions/19098376/…

            – endormi
            Apr 3 at 11:44






            Oops, sorry. Bootstrap 3 apparently has for example .visible-lg. This question might help stackoverflow.com/questions/19098376/…

            – endormi
            Apr 3 at 11:44


















            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%2f55380489%2fchange-body-of-table-according-to-the-screen%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

            Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

            SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

            은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현