Solved

CSS: Why are my submenu options not 100% wide?

Posted on 2016-10-20
5
42 Views
Last Modified: 2016-10-20
OK I have been looking at this for long enough.

Please see this fiddle at <768px wide.  Click Menu, then click About us+, and you should see the issue.  The underlying ul, or li, or a, is not 100% wide and I can't see how to fix it, everything seems set to 100% when i inspect the elements.

https://jsfiddle.net/a0zjjde8/

Cheers,
  Col
0
Comment
Question by:colinspurs
  • 2
  • 2
5 Comments
 
LVL 55

Accepted Solution

by:
Julian Hansen earned 420 total points
ID: 41851819
Look at this style
Line 153
nav > ul > li:hover > ul {
  display: block;
  width: 11.1111%; /* <== LOOK */
}

Open in new window

That is what is causing your problem
1
 
LVL 2

Assisted Solution

by:Amita Singh
Amita Singh earned 80 total points
ID: 41851821
Try This

nav > ul > li:hover > ul{
	 background: rgba(0, 0, 0, 0) none repeat scroll 0 0;
	 box-shadow: none;
}
nav > ul > li:hover > ul{
	width:100%
}

Open in new window

1
 
LVL 3

Author Closing Comment

by:colinspurs
ID: 41851884
Thanks both.  JulianH was first but I like the styling tip from Amita.
0
 
LVL 55

Expert Comment

by:Julian Hansen
ID: 41851920
You are welcome.
0
 
LVL 2

Expert Comment

by:Amita Singh
ID: 41851926
Thank You
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this Micro Tutorial viewers will learn how to create a CSS image sprite (In a later tutorial, viewers will learn how to use CSS and HTML to create a navigation menu using this sprite) Open a new Photoshop document with a width of (Icon width)x(N…

820 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