Solved

How do I modify width of navigation buttons

Posted on 2011-03-25
9
204 Views
Last Modified: 2012-06-21
I am trying to modify the width of the buttons in my navigation bar.  I created a class and modified the width but it doesn't seem to be "taking".  I put a yellow background on it to identify the width setting for each button.  Yes, I know the image is resting over the navigation.  That is another issue I am wrestling with and it was posted on another question.  

Basically, in a nutshell, I need the navigation to sit to the right of the logo and I need it to be one line.

http://nsitedesigns.com/nsitedesigns/miller/7.html
0
Comment
Question by:nsitedesigns
  • 5
  • 3
9 Comments
 

Author Comment

by:nsitedesigns
ID: 35216160
You can also see a tan background when you mouse over the buttons.  It extends to the right of the yellow button because I can't figure out how to make it more narrow.
0
 

Author Comment

by:nsitedesigns
ID: 35216176
Ugh screw it.  I took out the yellow background it was getting to hard to work the problem.
0
 
LVL 40

Expert Comment

by:gurvinder372
ID: 35216221
try changing line 71 to

width: 30em;
margin:0px; \\optional
or
width: auto;
padding:5px;
margin:0px; \\optional
or
min-width: 30em;
max-width: 70em;
margin:0px; \\optional
0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 

Author Comment

by:nsitedesigns
ID: 35216281
Are you giving me options or should I put in all the "or" statements?
0
 
LVL 40

Assisted Solution

by:gurvinder372
gurvinder372 earned 100 total points
ID: 35216288
i am giving options. please try them
0
 

Author Comment

by:nsitedesigns
ID: 35216378
0
 
LVL 40

Expert Comment

by:gurvinder372
ID: 35220942
can you post a screen shot of how you want it to look in the end?
0
 
LVL 16

Accepted Solution

by:
JF0 earned 400 total points
ID: 35232946
How about just removing the width from this style?

#nav li {
    float: left;
    padding: 0;
    width: 8em;
}
0
 

Author Comment

by:nsitedesigns
ID: 35319343
Hi All,

Been dealing with an emergency for another client and haven't had time to look at all suggestions.  I hope to find time later this week.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How can I increase the size of this logo 5 37
Help to align the buttons in a row 2 28
Scroll 5 news at a time. 4 28
Change of column alignment in div 2 18
Learn by example how to specify CSS selectors for Selenium WebDriver test automation software.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question