Change the height of the nav, only in desktop

http://dev2.magickitchen.com/cartv4.html  on this site, I'd like to make changes to the nav bar, change height and font size. But I only want to see that change in desktop. I'm not really comfortable with media queries, could someone help out? Thanks.
Melody ScottAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

omgangIT ManagerCommented:
By desktop I'm guessing you only want the changes on computer screen as opposed to hand-held?  Read up here on media queries    https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Media_queries

You can start by trying something like the following which won't apply to screens smaller than 768px.
@media screen and (min-width: 768px) {
   .navscreenonly {
      height: 5em;
      font-size: xx-large;
   }
}

example

OM Gang
Melody ScottAuthor Commented:
Thanks, I'll look at that. I couldn't find any good info by looking on google.
Melody ScottAuthor Commented:
OK, I added this to my custom css:
@media screen and (min-width: 768px) {
   .header nav {
      height: 40px;
      font-size: 12px;
   }
}

But I see no changes on the site. I'm on a Dell Inspiron N7010, so I have a very big screen, I should see it. What am I doing wrong?
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

omgangIT ManagerCommented:
In my example I was specifying a class named 'navscreenonly'
To apply without using a class remove the class specifier in your CSS.
OM Gang

@media screen and (min-width: 768px) {
    header nav {
       height: 40px;
       font-size: 12px;
    }
 }
Melody ScottAuthor Commented:
But I do want to use a class. I only want this to apply to the header nav class.
omgangIT ManagerCommented:
You don't have a class specified.  Take a look at the screen shot I posted earlier.  You html is like this

<header>
   <nav>
      <ul class="clearfix">
         <li>...</li>

The unordered list element has a class specified.  The <nav> element does not.
You can
   1)  specify a class
      <header>
         <nav class="navscreenonly">
            <ul class="clearfix">
               etc.

      in you CSS
@media screen and (min-width: 768px) {
    .navscreenonly {
       height: 40px;
       font-size: 12px;
    }
 }


OR

   2)  Not specify a class
      <header>
         <nav>
            <ul class="clearfix">
               <li>...</li>

      in your CSS
@media screen and (min-width: 768px) {
     header nav {
        height: 40px;
        font-size: 12px;
     }
  }



The difference is the styling in case 1 (using a class) will only be applied to elements specifying that class.  In case 2, the styling will be applied to all <nav> elements that are children of <header> elements.

OM Gang

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Melody ScottAuthor Commented:
Thanks- I'm sorry it took so long to get back to this. I will work on it now.
Melody ScottAuthor Commented:
ok, it is functioning now, I apologize for my dumbness with the class, I know better than that, but sometimes I have a mind-freeze. :)

http://dev2.magickitchen.com/index.html  two things with this: 1. It breaks the page, now the main section is below the right navigation.  2. I can't quite figure out where the white box is in the code, I'll keep looking for that.

Thanks!
Melody ScottAuthor Commented:
ok, I figured out part two, it's just #1 I need help with. Thanks again.
Melody ScottAuthor Commented:
Actually, fixing that fixed the other problem, too. Thanks again!
Melody ScottAuthor Commented:
Thanks for your patience!
omgangIT ManagerCommented:
Sorry I did not respond but I was out yesterday.  Glad you got it all sorted.
OM Gang
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development

From novice to tech pro — start learning today.