Solved

remove photos from displaying on mobile site

Posted on 2013-12-03
3
255 Views
Last Modified: 2013-12-03
Is there a way to "hide" photos from displaying on a mobile site?  Right now, the photos are so wide that they don't fit the mobile screen right and there is a big black right margin to accomodate the image width.  If you go to the below address on your phone, you will notice that the Reader's Choice awards push off edge of website.  Every page on this site has an image in the right column.  Other pages have images of people that I also want to hide.

http://www.nsitedesigns.com/nsitedesigns/wrb/index.html
0
Comment
Question by:nsitedesigns
3 Comments
 
LVL 52

Accepted Solution

by:
Scott Fell,  EE MVE earned 500 total points
ID: 39693366
Since you are using media queries, in your individual css style sheets for each viewport you can manipulate the size of the image or simply hide it.  http://www.nsitedesigns.com/nsitedesigns/wrb/css/screen_layout_small.css

You can give the image a class, then on the css for small.css

img.someclass{width:100px;}

or

img.someclass{display:none;}
0
 
LVL 18

Expert Comment

by:Steven Harris
ID: 39693381
You can also specify the "mobile" display size as

@media screen and (max-width: 480px)
{
img { display: none; }
}

Open in new window

0
 

Author Closing Comment

by:nsitedesigns
ID: 39693564
Thanks
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The case of the missing phone talks about the way a small electronic gadget (the mobile phone) has penetrated into our lives and has made us addicted to it.
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question