Jump to content
WebFlake
  • 0

Hide block on mobile


Average Sam

Question

5 answers to this question

Recommended Posts

  • 1

center is deprecated in html5 , you should use css.

try something like..

<h3 class="ipsType_reset ipsWidget_title">picture box</h3>

<style>#rageblock img {
text-align: center;
margin-top: 5px;
max-width: 100%;
height: auto;}
</style>

<div id=rageblock>
<img src="linkedimnage" alt="rageimage_description" />
</div>

 

  • Upvote 1
Link to comment
Share on other sites

  • 0

So i'm trying to display a block with an image using pages, I would like to hide the block on mobile devices because it contains an image and it's not responsive.

​have you tried putting image in a custom div inside the block and set image width to 100%

​I currently have this:

<center><img src="http://link to image"></center>

Edited by Ragehost
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...