Footer problems
-
Hello:
For my footer, I am using just a background image with the dimensions of 960 X 85. In my style.css in the child theme, I have this declaration for the footer:#footer {
max-width: 960px;
background-image: url(“http://doca.org/responsive/wp-content/uploads/2015/02/footer_bg.jpg”);
background-repeat: no-repeat;
}If you look at the footer at http://www.doca.org/responsive, you will see the issue. I don’t know why it is skewed to the left and with a gap at the top. I experimented with it and I have to make the left margin 150px to get it in line with the container. I also have to make the top margin -20px so there is no gap. I don’t mind doing that, but for some reason, I think there is a proper way to do this and this is not it.
Another issue is that if I do take that band aid approach and get the footer positioned where it should be, the footer is not responsive. For example when I size down my screen, it cuts it off…unlike the header that properly reduces the size of the image with the screen. For the header I used the dashboard customize/header image and simply added the image from my media library. So there must be something that is making it responsive and not the footer.
If someone could give me some advice, I would greatly appreciate it. Thanks in advance.
David
-
Hi cdrossen, I solved the issue, you can find the final result and the css in this [promo link removed]
@creativasium – please post answers on these forums(and not as a way to advertise your services).
Answer copied here –
#container { box-shadow: 14px -3px 17px 0 rgba(110, 110, 110, 1); margin: 20px auto 0; padding: 0; } #footer { font-size: 11px; line-height: 1.5em; padding: 0; }@cdrossen – if that doesn’t work, post back and I’ll take a closer look at it.
WPyogi:
Thanks. That got it in line horizontally, but still has the gap on top and still not responsive. Thanks.http://www.doca.org/responsive
David
Now the margin’s on the wrapper instead of the container, put the margin-bottom:0;
#wrapper {
border: 0 none;
padding: 0 !important;
margin-bottom: 0;
}
The topic ‘Footer problems’ is closed to new replies.
