Home › Forums › Weaver Xtreme Theme › Help with parallax
- This topic has 12 replies, 3 voices, and was last updated 11 years, 2 months ago by
scrambler.
-
AuthorPosts
-
June 26, 2015 at 08:36 UTC #17970
lambert
ParticipantI am using parallax, and am trying to have a white flash at the bottom of the image, so that it blends in with the colour below http://www.universalatlantic.co.za/
This is the css I use:.bottom-parallax {height: 70px;margin-left: -2%;max-width: 1000px;position: absolute;width: 100%;}.bottom-parallax img {position: relative;left: 0;bottom: 0;}As you can see from the screenshot I end up with a gap between the bottom of the flash and the bottom of the image
Can anyone help?Many thanksLambertJune 26, 2015 at 12:42 UTC - Views: 1 #23057Maureen
ParticipantLambert, I added a margin to the bottom flash image of 1.75em and it seem to work:
border-width: 0;margin-bottom: 1.75em;text-align: center;
June 26, 2015 at 16:10 UTC #23058scrambler
ModeratorBut the question I have is why are you not simply using an image that already looks like the flash as the parallax background images, instead of bothering with different pieces?
June 27, 2015 at 12:05 UTC #23059lambert
ParticipantThanks Maureen, that did the trick! Scrambler, I want to scroll the flash over the bg image, If you look now, you will see what I mean π
June 27, 2015 at 14:09 UTC #23060lambert
ParticipantThe problem I picked up now is that when I resize the screen, the background picture pops out underneath. Is there any way to retain the proportions on resizing?
June 27, 2015 at 16:16 UTC - Views: 1 #23061scrambler
ModeratorOK got it, nice effect π
The issue is that by default Xtreme sets the height of the parallax band to a fixed height. this makes sense in most cases, but in your case you actually need the height of the parallax image window to be just the height of the content that is being overlaid over the background image.
It looks like you can do that by doing the following
First remove all the styling you have on the bottom parallax div
.bottom-parallax {
height: 70px;
margin-left: -0%;
max-width: 1000px;
position: absolute;
width: 100%;
}As you dont want that div to be positionned absolute.
Second add a clearing div after the bottom-parallax div so that this area knows its height
<div class=”clear:both;”></div>Then add a margin-bottom:0; as inline style of your bottom flash mask image. You need to set that margin to zero as there is a default one being applied anyway
Then add the rule below in the theme custom css rule box to let the area over the image scale vertically with the content
.parallax[id*=post-] {height:auto;}
June 27, 2015 at 16:17 UTC #23062scrambler
Moderator@weaver, this brings up an interesting point. By default Parallax post have a window with a fixed height. In case like these where people actually pace some content in the windows, they may want that window to just have the height of the overlaid content.
For these cases it may be nice to have an option for Automatic height instead of fixed height.
June 28, 2015 at 12:15 UTC - Views: 1 #23063lambert
ParticipantI must be doing something wrong, I can get it to work with the post right at the bottom, where the whole excerpt is an image overlaid over the background, but I still cannot get it to work properly on the top post
June 28, 2015 at 15:35 UTC - Views: 2 #23064scrambler
ModeratorThe issue we were trying to solve appears to be solved as the flash works at all resolution.
The only issue I see with the top part is that it ends up being floated right because of the rule
aside, details, figcaption, figure, footer, header, menu, nav, section {float: right;}
I don’t know if you added this rule, if so it is too general.
If it is a weaver rule, we can override it on the parallax post with
section.parallax {float:none;}
But let us know, because if it is a weaver rule, weaver probably needs to review it
July 2, 2015 at 09:27 UTC - Views: 2 #23065lambert
ParticipantHi Scrambler
I removed the rule: aside, details, figcaption, figure, footer, header, menu, nav, section {float: right;}what does it look like in Explorer. now?July 2, 2015 at 16:14 UTC #23066scrambler
ModeratorIt scales down fine now
Can you confirm the following for me
Why did you add that rule in the first place?
Did you actually not see the top post content being cutoff when the browser got smaller on other browsers?
July 6, 2015 at 12:36 UTC #23067lambert
ParticipantHi Scrambler, in all likelyhood i copied it from firebug, it seemed to work at the time, and when I made the changes I didn’t delete it π
July 6, 2015 at 16:36 UTC #23068scrambler
ModeratorBeware of rules like this that have very non specific selectors that apply to basically everything π
-
AuthorPosts
- You must be logged in to reply to this topic.

