Jump to content


Photo
- - - - -
Open

Changing fixed navbar padding for desktop only



  • Please log in to reply
1 reply to this topic

#1 zouleo

zouleo

    Super Member

  • Members
  • 165 posts
  • LocationStockholm
  • Country: Country Flag

Posted 19 October 2012 - 10:39 PM

Inside the pagelines-customize plugin I have a style.css. Inside this file I've put

Please Login or Register to see this Hidden Content


The problem is that I want the padding-top to be zero when using a tablet or phone. This actually seems to be default, but I'm overriding it with the above style.

So my question is. How do I get padding-top 39px only for desktops and zero for tables or phones?

Thank you

#2 James B

James B

    Advocate

  • Moderators
  • 5126 posts
  • LocationSurrey - UK
  • Country: Country Flag

Posted 20 October 2012 - 12:34 AM

Hi there,

You'll need to apply some browser specific css to affect only mobile devices. You could look at our Browser Specific Plugin

Please Login or Register to see this Hidden Content



Or try using @media as the selector to amend the Css. You can list a list of the various selectors here

Please Login or Register to see this Hidden Content