Solved

follow-up to previous question - navigation menu issue

Posted on 2013-10-22
8
185 Views
Last Modified: 2013-10-22
Hi There!

This is a follow-up question to

http://www.experts-exchange.com/Web_Development/Miscellaneous/Q_28272726.html

I've gotten my menu to look pretty much how I want with regards to spacing, except for one little piece. On my top menu, there is a darker shade of gray in my border that I don't want, and I know it has to do with the first LI, but I can't seem to get rid of it. Any suggestions is greatly appreciated!

you can view the code at

http://www.exchangetree.org/includes/header.asp

Cheers
Josh
0
Comment
Question by:Big Monty
  • 3
  • 3
  • 2
8 Comments
 
LVL 10

Expert Comment

by:ienaxxx
Comment Utility
can't find what you are talking about... sorry.. :-(
0
 
LVL 32

Author Comment

by:Big Monty
Comment Utility
i'm using Chrome at this stage, I havent even begun testing other browsers yet. I've attached a screenshot of what im seeing
Untitled.png
0
 
LVL 42

Expert Comment

by:Chris Stanyon
Comment Utility
It looks like it's down to the width of the first LI exceeding the width of your image. Just add a width to the first LI to match the image:

<li style="border: medium none;width:135px"><img src="/images/diagonal.png" style="vertical-align: bottom;"></li>

Open in new window

0
 
LVL 32

Author Comment

by:Big Monty
Comment Utility
i think that's close, but when I add a width, the top light gray border doesn't extend all the way across...
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
LVL 10

Expert Comment

by:ienaxxx
Comment Utility
i don't see the problem with Firefox.

anyway you can change the style of the first LI element in a elegant way by using the nth-of-type CSS3 selector http://reference.sitepoint.com/css/pseudoclass-nthoftype

So this doesn't require you to make your HTML dirty.
2013-10-22EE.JPG
0
 
LVL 10

Expert Comment

by:ienaxxx
Comment Utility
you can try to platy with margin-left property, even with negative values, always selecting only the first LI...
0
 
LVL 42

Accepted Solution

by:
Chris Stanyon earned 500 total points
Comment Utility
OK. That's because you no longer have 5 elements, each set to 20% width, so we need a different approach. How about this: keep the width as it was (i.e delete the new width declaration), align the image to the right and set the background colour of the first LI to white:

<li style="border: medium none;background-color:white;text-align:right"><img src="/images/diagonal.png" style="vertical-align: bottom;"></li>

Open in new window

0
 
LVL 32

Author Closing Comment

by:Big Monty
Comment Utility
great, works perfectly! I did have to add

margin-right:-1px;

to my image style because a white line was appearing on some resolutions, other than that, many thanks for your help!
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now