Solved

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

Posted on 2016-10-20
5
24 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 51

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 51

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

CSS3 Custom checkboxes This article shows how to style the checkbox form element using only CSS. Works in: Chrome, FF, Safari, Opera, IE9+ Uses modernizr.js to check for :checked pseudo class, falling back to plain old checkboxes (IE8 and bel…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

758 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

21 Experts available now in Live!

Get 1:1 Help Now