Solved

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

Posted on 2016-10-20
5
40 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 54

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 54

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

When writing CSS, there are a few simple rules that will make your life easier.    1. Using ‘* {box-sizing:border-box;}’. Using this will wrap all your elements in a nice little compact box-model that will give you the width you want, like so... …
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
In this tutorial viewers will learn how add a full-size background image to a webpage using CSS3. Create a new HTML document with an internal stylesheet.: In CSS, define the html element to have a background image. Use a high resolution image.: In t…
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…

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