Advertisement:

Author Topic: css for autohide or do not show description in mobile view  (Read 523 times)

Resta

  • Sr. Member
  • ****
  • Posts: 345
css for autohide or do not show description in mobile view
« on: July 16, 2018, 09:07:28 pm »
Hello,

I am looking for css that will automatically hide the listing description in mobile view (just like gallery view). Thanks!

WEBmods

  • Hero Member
  • *****
  • Posts: 937
  • github.com/webmods-croatia/love-osclass/ | patrick
Re: css for autohide or do not show description in mobile view
« Reply #1 on: July 16, 2018, 10:02:02 pm »
Hello,

You need to use @media queries. Here's an example that will hide the element with id "description" for screens with the width less than 768px.

Code: [Select]
@media (max-width: 768px) {
    #description {
        display: none;
    }
}

Regards.

Resta

  • Sr. Member
  • ****
  • Posts: 345
Re: css for autohide or do not show description in mobile view
« Reply #2 on: July 17, 2018, 03:31:04 pm »
Patrick,

Thanks for the tip.