Home › Forums › Support › Can’t Seem to Hide Image on Mobile This topic has 3 replies, 2 voices, and was last updated 3 years, 4 months ago by Leo. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts November 25, 2022 at 2:39 pm #2434554 Daniel I am having issues hiding elements on my website. I have used the following code that was in one of the support forum posts. `/* For tablets and desktops */ @media(min-width:769px){ .test-1{ display: block; } } /* For mobile */ @media(max-width:768px){ .test-1{ display: none; } } I am trying to remove the gray line that is an image on the about page of my site. Here is an image of the element that I would like to remove. Here is a link to the page on my site. November 25, 2022 at 6:29 pm #2434856 LeoStaff Customer Support Hi there, Did you add this entire thing in the custom CSS field? <div class="hide-on-mobile hide-on-tablet"> Content here will only display in Desktop </div> If so please remove that and simply copy and paste in this: hide-on-mobile hide-on-tablet You shouldn’t need any CSS at all. More info here: https://docs.generatepress.com/article/responsive-display/ Let me know if this helps 🙂 November 25, 2022 at 11:27 pm #2435112 Daniel Adding the hide-on-mobile hide-on-tablet worked. Thanks for the help here Leo! November 26, 2022 at 2:42 pm #2436352 LeoStaff Customer Support No problem 🙂 Author Posts Viewing 4 posts - 1 through 4 (of 4 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In