Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 60
  • Last Modified:

fix wrap around navigation on tablet device

I am still trying to figure out media queries.  Home button in the site navigation wraps to second line on a tablet in landscape orientation.
http://sheboyganseniorcommunity.com

Is there a way to set the media query for tablet landscape to either reduce margin/padding between buttons so that home will fit on same line as others in the navigation bar?  Or, is there a better way to fix this?  Should I simply replace navigation that doesn't quite fit with hamburger icon?
0
nsitedesigns
Asked:
nsitedesigns
  • 2
1 Solution
 
chilternPCCommented:
I notice in Microsoft Edge it doesn't do that. but in Chrome it does.
in your styles.css adjust the following:

.site-header .genesis-nav-menu a {
    color: #444;
    padding: 32px 16px;
}

Open in new window


to:
.site-header .genesis-nav-menu a {
    color: #444;
    padding: 32px 12px;
}

Open in new window


to check other device sizes use the follow emulator:

http://quirktools.com/screenfly
0
 
nsitedesignsAuthor Commented:
Thanks!
0
 
chilternPCCommented:
if this is a bought paid for  theme (or even a free one) , be careful it be get overwritten if you update the theme.
one way round this is to install the plugin "simple custom CSS" and active it
then under appearance there will be a custom CSS entry -
simply add:

.site-header .genesis-nav-menu a {
    color: #444;
    padding: 32px 12px;
}

Open in new window


to this and save.  then if the theme updates it will still work.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now