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

    html css and Js

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

  • Chris Norwood 118 posts 617 karma points
    Mar 29, 2019 @ 07:22
    Chris Norwood

    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.

Please Sign in or register to post replies

Write your reply to: