How to fix navigation bar in wordpress? [closed] - javascript

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 am working on a theme which has a dynamic menu when we scroll it goes hide. I want to fix it on the top just like w3school website. Any idea?
Is it a good option to use a plugin like Sticky menu
Here is the website link
https://spaceunlimited.in/
CSS
.ehf-header #masthead {
z-index: 30;
position: relative;
}

When using the following for masthead you can keep the brown borders on the side.
#masthead {
z-index: 30;
position: fixed;
background: whitesmoke;
top: 0;
left: 20px;
max-width: calc(100% - 40px);
}

Add this css
.ehf-header .headroom--unpinned{
position:fixed !important;
top:0px;
}

Related

How can I stop my logo from floating to right while I increase the screen size? [closed]

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 1 year ago.
Improve this question
.header-logo{
max-width: 172px;
/* width: 100%; */
max-height: 100%;
height: auto;
margin-left: 30px;
margin-top: 5px;
}
My coding for logo image.
Try adding this CSS-code to that Logo:
display:block;

Postioning of a clickable dropdown menu [closed]

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 5 years ago.
Improve this question
I'm using a mobile first approach to create a responsive website. I'm currently working on my navigation menu and I'm satisfied with it on mobile (though it's far from perfect). However, when styling my navigation menu for web use I'm not able to position my dropdown content below the element in my menu. It's currently popping up in the upper left corner.
I'm using jQuery to create my clickable menu (don't know if that's relevant).
I also experience a bug on mobile where i cannot close the dropdown after opening it again. If anyone has an answer for that too, that would be great but I'm satisfied with it for now.
Any help is greatly appreciated, thank you :)
Not a perfect example, but you are best off removing your use of floating and replacing with a display led approach.
Something along these lines:
#media only screen and (min-width: 900px) {
nav > a, .dropNav, nav > div {
display: inline;
position: relative;
}
.dropList {
left: 0;
right: 0;
display: none;
position: absolute;
background-color: #f9f9f9;
min-width: 160px;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
z-index: 1;
padding-left: 0;
}
}
Example: https://jsfiddle.net/davcpas123/mjukghz6/1/
This will achieve something similar to this:

Whitespace at the bottom of DIV [closed]

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 7 years ago.
Improve this question
I'm creating a "sketchpad" mini-project. Most features are working so far, but I'm having one issue. The sketchpad uses a 16x16 grid by default. When I fill in the bottom row of the grid, you can still see a tiny white line. I have no idea where it could be coming from.
This is an image of the issue I mentioned above
Here is the code: JSFIDDLE
#grid {
height: 450px;
width: 450px;
margin: 10px auto;
background-color: #fff;
display: block;
overflow: hidden;
font-size: 0;
}

No Data Available with both side center (Verticla + Horizontal) with HTML, CSS [closed]

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 7 years ago.
Improve this question
I have created data box for widgets in my project.
But i want my text to be in the center both Vertical and Horizontal without mentioning height for it.
One more thing, I have JS Based solution for calculating heights. But i want pure CSS based solution.
Demo - https://jsfiddle.net/3j7ydafw/5/
One way to do this
.content-contaner-right{
background-color:#ddd;
min-height:250px;
position: relative
}
table{
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
height:100%;
width:100%;
}
td{
text-align:center;
}
<div class="content-contaner-right">
<table>
<tr>
<td >textsdfsdf</td>
</tr>
</table>
</div>

CSS Footer background image won't show up [closed]

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
The background image of the footer won't show up.
Note: No errors in Chrome developer tools.
CSS Code:
.mini1 {
width: 100%;
height: 6.7%;
margin-top: -2%;
background-image: url('../images/footer1.jpg');
z-index: 10;
}
HTML Code:
<footer class="mini1">
....
</footer>
EDIT:
The parent of footer in this case is the tag.
EDIT:
For people thinking about the path:
EDIT: There is content inside the tag.
Try following code:
.mini1 {
width: 100%;
height: 6.7%;
margin-top: -2%;
background-image: url('../images/footer1.jpg');
z-index: 10;
background-size: 100% 100%;
}
Please see to it that, image path is correct. Go in console to check for any errors.
Well here is a working JSfiddle: http://jsfiddle.net/knftvt6v/4/
I believe it is your file path that's causing the error, can you make a JS fiddle
.mini1 {
width: 100%;
height: 2em;
margin-top: -2%;
background: url('http://www.serenitybaumer.com/main_images/footer.jpg');
z-index: 10;
color:white;
text-align:center;
}
I added this block of code in which worked fine

Categories