?
Solved

remove photos from displaying on mobile site

Posted on 2013-12-03
3
Medium Priority
?
264 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 53

Accepted Solution

by:
Scott Fell,  EE MVE earned 2000 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Lithium-ion batteries area cornerstone of today's portable electronic devices, and even though they are relied upon heavily, their chemistry and origin are not of common knowledge. This article is about a device on which every smartphone, laptop, an…
CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses
Course of the Month9 days, 22 hours left to enroll

762 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