Jump to content
Sign in to follow this  
mbreese1

Can't background-image:none for mobie view

Recommended Posts

mbreese1    1
mbreese1

Dearest people-who-know-what-they're-doing,

 

I've doing alright hacking my way through WP and Platform Pro, but I finally really am stuck. I need to hide the background-image from mobile view but cannot (for the life of me) figure out how. I installed Browser Specific CSS to make the process easier, but alas- not easy enough for me.

 

I used the following code to add in the color I want to show in mobile:

body.android {background-color: #333333 !important;}

 

Then I tried to use the same idea to remove the image:

body.android {background-image: none !important;}

 

This second piece does absolutely nothing. I am completely stumped, but assuming it is something obvious to everyone else in the universe. Possibly I've got the wrong selector/element/class? (Ha ha, like I even know what those are!)

 

My site is still under construction, and I'll clean up my custom code when I finally learn how ;) tanathetattooedlady.com

 

Thank you x50k

B

Share this post


Link to post
Share on other sites
beardedavenger    158
beardedavenger

Check out the responsive utility classes:

 

http://twitter.github.com/bootstrap/scaffolding.html

 

Ex:

 

 

 

.mything {
.hidden-phone;
}

 

 

Nick


Something big is coming for DMS + photographers.

http://fotostheme.com

 

Nick Haskins & CO - New home for all of my PageLines Store products! 

http://nickhaskins.co

 

Better DMS - News, Tutorials, and Tips

http://betterdms.com

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Similar Content

    • janpeeters
      By janpeeters+
      Hi all,
      I was totally excited to find out about 'CSS Hero' (http://www.csshero.org) I read about it in the compatible plugins section of the PL5 docs (http://www.pagelines.com/resources/compatible-plugins) For me it's a great way to more easily customize my sites because I'm not a CSS pro.
      I'm wondering about one thing though… Does anyone know if using this will result in a heavy penalty on page loading speeds? Would love to start using it but only if it doesn't cost too much in terms of speed.
      Thanks, Jan
    • abuzzelli
      By abuzzelli+
      I need the modal popup background to be solid and I can't get the css to work. Not sure what to do. Here's the page: http://bellissimoplasticsurgery.com/breast-augmentation-test-page/
    • evasnijders
      By evasnijders
      Dear fellow forum members,
      It has been months, if not years, since I got the latest DMS version. And I haven't been able to get myself to install it on my blog...
      A few months ago I took on a new job and I now know for sure I will never get to it.
      So, my question: is there anyone out there who is experienced with DMS and would be willing to do this for me.
      In all honesty, I will need help with everything, from rethinking the content (structure), to deciding on illustrations and colours. 
      I am though, willing to pay for this.
      Thanks in advance for your kind answers.
      Eva
      www.evasnijders.com
       
       
       
    • abuzzelli
      By abuzzelli+
      Trying to adjust the position of the background image on http://churchofwolves.com/. I need the wolf background to move over to the left on mobile versions so it can be seen. Here's the code I'm using and it's not working. I've tried a bunch of different things. Getting frustrated. Any advice?
      @media (max-width: 768px) { .home .site-wrap{ background: url(http://churchofwolves.com/wp-content/uploads/2015/06/Church-of-Wolves-bkgd1.jpg); -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; background-position: 100% 0%; } }  
    • kellid
      By kellid
      Hello!
       
      Wondering how I can have only 4 posts show in the Masonic section?  I've tried going by category but it still adds an additional post.  Any help is greatly appreciated :) Thanks!
       
      Kelli D
      SolarConnect.Us
×