farmer333
Forum Replies Created
-
Luiz, you are a star!
Actually changed the position: fixed before reading your last comment, ending up with a huge margin at the bottom, then fudging it rather than fixing by adding;
margin-bottom: -350px
into the parallax-bg
Now I have seen your last comment, it all makes sense. Thank you for all your help, it is much appreciated, and I have learned a lot, hope the newbie questions were not too annoying!
Forum: Fixing WordPress
In reply to: Lightbox for sidebar images, is that possibleYep, looked at quite a few now, but nothing that seems to achieve the correct effect. I am still looking for other plugins to try, just thinking maybe there is another way.
Almost perfect, adding the top margin has brought the image down, thank you for that, however setting the left and right margins to auto has not centred it. Looking at my #parallax-bg it looks like it should be centred but it is not, you can see here what it now looks like;
The CSS is;
#parallax-bg {
position: fixed;
background-position: center;
background-repeat: no-repeat;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
height: 300px;
width: 90%;
margin-top: 64px;
margin-left: auto;
margin-right: auto;
}Where is this going wrong?
Plus, I still have the same problem with centering, if I make the image less than 100%, which is what I would like, then it is left aligned and I can not seem to center it as you can see here;
That is certainly closer, however the image is still partially hidden by the title and navigation bar, before I changed the image size, the image was not hidden at all until obviously by scrolling down.
Is there a way to move it back below the menu?
Ah, I forgot to mention that my header image will be different for each page, once the site is finished. So how would I do this without directly referencing an image URL?
Currently my CSS for parallax is;
#parallax-bg {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 1;
}Thanks for such a fast reply btw.