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.
mel200Asked:
Who is Participating?
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
0
mel200Author Commented:
Thanks, I'll look at that. I couldn't find any good info by looking on google.
0
mel200Author 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?
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

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;
    }
 }
0
mel200Author Commented:
But I do want to use a class. I only want this to apply to the header nav class.
0
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
0

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
mel200Author Commented:
Thanks- I'm sorry it took so long to get back to this. I will work on it now.
0
mel200Author 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!
0
mel200Author Commented:
ok, I figured out part two, it's just #1 I need help with. Thanks again.
0
mel200Author Commented:
Actually, fixing that fixed the other problem, too. Thanks again!
0
mel200Author Commented:
Thanks for your patience!
0
omgangIT ManagerCommented:
Sorry I did not respond but I was out yesterday.  Glad you got it all sorted.
OM Gang
0
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.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.