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
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 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;
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;
}
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
If I don't use javascript to listen the event of resize. Is that any method to center the div?
The css structure contain 3 state. normal , under 900px, under 550px.
When the width is over 550px. I can set the section to center. When the screen is under 550px. I used scale to reduce the size and then I am unable to set it to center.
I tried change to position to fixed/relative, left/ float/transform-origin/translateX/use vw/margin/padding...
Is that I must use javascript to listen the window resize and then change the left property for the css of the section?
my website is on http://php-kkhchan.rhcloud.com
CSS:
#media screen and (max-width: 900px) {
.box {
width: 520px;
height: 650px;
}
#tabs {
width:520px ; height: 650px;
position: static;
margin: 0 auto;
padding-top: 1em;
}
}
#media screen and (max-width: 550px) {
#tabs, .box {
transform: scale(0.6,0.6);
left: -14%;
position: relative;
}
}
HTML:
<section id="tabs">
<article class="c_tab box" id="tab0" style="background: #A9D0F5;">
testing
</article>
</section>
You can also take reference to below jsfuddle
JSfuddle
finally, I used javascript to handle. the following is my solution.
I am not sure if it is the best solution.
$(window).resize(function(){
if ($(window).width()<=550) {
$('#tabs').trigger('customresize');
}
});
$('#tabs').on('customresize',function(){
myWidth=($(window).width() - 545)/2 +'px';
$(this).css('left',myWidth);
});
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I am currently working with parallax effects on a website where i need a paragraph to go through halfway on the bottom of the page. But since the paragraph has to be responsive in font-size i am not quite sure if i need to convert the text into image or stick with pure text to solve this issue? It seems like a solution with images can enable me to do some tricks with pure JavaScript.
In general i feel it is very hard to control the text on the page especially for parallax where the text can appear in different positions. Maybe there are some good tools for this purpose?
https://jsfiddle.net/pt88w26u/2/
HTML:
<section id="first">
<div>
<p>This is a test</p>
</div>
</section>
<section id="second">
</section>
CSS:
html,
body {
height: 100%;
color: #fff;
font-size: 16px;
margin: 0;
padding: 0;
}
section {
min-height: 100%;
}
#first {
background-color: #000;
}
#second {
background-color: #ddd;
}
section > div {
top: 86%;
font-size: 5em;
position: absolute;
transform: translate(-50%, 0%);
left: 50%;
}
You can do this only with css.
To do this, set the position and transform of the div to
bottom:0px;
transform:translate(-50%,50%);
and remove the default margin on the p tag.
https://jsfiddle.net/pt88w26u/5/
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;
}