Solved

remove photos from displaying on mobile site

Posted on 2013-12-03
3
251 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
Comment Utility
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
Comment Utility
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
Comment Utility
Thanks
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
make top menus bigger font 3 34
Setting Up a Responsive Form 24 40
logo disappears on cell phones 5 30
Menu Inconsistent 3 18
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
In this Micro Tutorial viewers will learn how to create a CSS image sprite (In a later tutorial, viewers will learn how to use CSS and HTML to create a navigation menu using this sprite) Open a new Photoshop document with a width of (Icon width)x(N…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

763 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now