Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 years ago.
Improve this question
I would like to make a full width drop down sub-menu. Please check my site. My site is here.
I tried these code but it's not working. I put these code to child theme's style css.
#masthead .color-site-white nav .sub-menu {
left: 0;
right: 0; }
#masthead .color-site-white nav .sub-menu {
width:100% }
I don't know how to do it.. Please help me! Thanks.
Your link isn`t showing.
By setting the width of the dropdown to 100% you should achieve it, something like this:
#masthead ul li:hover > ul {
width: 100%;
overflow: hidden;
}
have you seen this? Full width css dropdown menu
Related
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 4 years ago.
Improve this question
I have a navigation menu on this site which looks like this:
I'm trying to increase the height of the navigation for example to 60px. I've tried playing with CSS to increase the height but the height won't change. I'm not sure what I'm doing wrong.
I've tried height, padding, heigth !important but there's no effect on my menu.
Can you help me to increase the height of my navigation?
So here is my answer. The problem is the background for your navigation. I would prefer a solution like this:
.row .nav {
line-height: 60px;
background: black;
}
.row .menu a {
line-height: 60px;
}
.row .menu .sub-menu {
top: 56px;
}
Insert this into your CSS. This code is tested and works. Tell me if it works for you.
It should looks like this:
Hope this helps
.row .sixteen.columns {
height: 50px
}
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 4 years ago.
Improve this question
I was trying to have a mobile menu for my website. when I apply padding-left: 40px; to ul ul a tag of the menu. It causes to overflow on right side. Can someone give me an advice to solve this issue please.
I know I should handle these codes but I don't know what is problematic
.mobile-menu ul a {
padding-left : 40px;
}
.mobile-menu ul ul a {
padding-left : 60px;
}
I could achieve following so far, and at this point I stuck
jsfiddle
Screenshot
And this is what I try to have:
Screenshot
If you meant to have same widths for "My Account" and "Cart", you can remove the ul around the Cart. That is a new list inside a list item and that is causing to change the width.
Updated jsFiddle
If you ment to have all the menu items in same width...
Why the child element is longer than the first one?
Because of the browser default -webkit-padding-start CSS property. FYA, it is set to 40px.
How could I achieve that they will have same width?
Set padding: 0 on the ul.
.mobile-menu ul {
padding: 0;
}
Another Version jsFiddle
Set the width of the containing element, in this case the top level ul.
What you are doing currently is setting a width on ALL the anchors, no matter what level they are in.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 years ago.
Improve this question
How to adjust the sidebar position? I want to remove the left space in left sidebar. How to do that? Here's the site Thank you
Just Replace this code in css
.widget { margin: 8px -80px 25px; } .sidebar { width: 10%; }
Finally your sidebar will display like this:
In your CSS you have assigned 1170px for your content section and aligned with center. Change that to 100%, it will work.
.ak-container
{
width:100%;
margin:0px auto;
}
Just Use float:left on <div id="primary" class="content-area" style="float: left;">
and remove margin-left:150px; from #fbuilder
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
Here's the site:
http://cholakislaw.com/install/
I think it's a tweak I made to the CSS because the demo for the theme doesn't suffer from this issue:
http://www.mojo-themes.com/item/attorneys-lawyer-wordpress-theme/demo/
Best way to do is:
CSS
.slider ul li img {
display: none;
}
.slider ul li:first-child img{
display: block;
}
By doing this, you'll hide all slideshow images and then show only first-child on load. Later, js will do it's trick and overwrite it.
This is due to the fact that the images start to load before the slider component, easySlider in that case, has set height and overflow property of the #slider element. Thus, when the images start to load, #slider is high enough to see more than the first image.
To prevent this, you could add in slider.css the following rules :
#slider {
height: 100%; /* parent element with class .slider has his height already set */
overflow: hidden;
}
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Closed 9 years ago.
Improve this question
I have responsive menu in middle of div.
After I resize screen menu moves to right of screen.
Preview example: >>> CODE here <<< (all html/css/js are accessible via web)
it looks like this >
Question:
How to align it to right as in picture ...
Thank you in advance.
PS: code is in example link (html file)
div.content-menu {
position: relative;
}
ul.nav {
position: absolute;
right: 0px;
}
Add position: relative; to .content-menu, and position: absolute; right: 0; to .nav (both in the mobile-size media query).
EDIT And also maybe remove the width on .nav, and .nav > li and change them to max-width: 280px; min-width: 200px; so that it won't break on screens smaller than 300px.
Hope that helps.