Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Bibek kumar jha 1 post 71 karma points
    Mar 29, 2019 @ 03:41
    Bibek kumar jha
    0

    html css and Js

    how to hide content on mobile and show on desktop responsive view

  • Chris Norwood 131 posts 642 karma points
    Mar 29, 2019 @ 07:22
    Chris Norwood
    0

    It depends on the framework you're using - in bootstrap 4, for example, you can do this with something like:

    <div class="d-none d-sm-block">@*content here*@</div> 
    

    Which will hide the content on an "extra small" screen (below about 576 pixels wide), but show it on anything bigger than that.

    You can also do it with media queries yourself, but most responsive frameworks will have something built in.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies