- This topic is empty.
-
AuthorPosts
-
April 30, 2014 at 6:07 pm #168958
Kandi
ParticipantSo, I would like for the black swirl .png image to float in front of the sliding picture gallery. It looks how I want when the browser is in full screen but when I make the window smaller this floating image does not stick where I want it to. Please help.
May 1, 2014 at 2:37 am #168972Paulie_D
MemberThe first thing to do would be to make sure the black #contactbar moves up as the slider gets smaller and lose the white gap.
.fotorama { height: 530px; /* remove this from line 65 of your styles.css */ }
May 1, 2014 at 7:54 am #168979Kandi
ParticipantThanks Paulie……….ok. Gap removed.
May 1, 2014 at 8:38 am #168983Paulie_D
MemberOk…you still need to think about centering the slider because on my monitor it leave a huge white gap on the right hand side.
That may give you some issues as it looks like some of your images aren’t large enough to cover really wide monitors.
Once we have that resolved we can think about positioning the ‘curl’..but I do think you will have to move it into another div…I’m just not sure which one yet.
In fact, it might back more sense to take it out of the HTML altogether and stick it in as a background to a pseudo element…that would actually be somewhat easier I think.
May 1, 2014 at 10:28 am #168994Kandi
Participantok. so I’ve taken the “floatinghair” out of the html and put into psuedo element.
As for the images in gallery. They are pretty large 1600 x 536, which I thought is bigger than dimensions needed for the widest screen. I have a widescreen browser (16in wide) and its showing how I want when its full screen like in the pic below:
May 1, 2014 at 10:36 am #168995Paulie_D
MemberI’m using a 21″ monitor myself (actually two of them) but if you are happy then that’s fine.
May 1, 2014 at 10:52 am #168996Kandi
ParticipantWell I would like to make it look right on most or all browsers. Do you suggest I make the images even larger? If not, don’t worry about this part. I will play around with it and research some more. I’m sure you can notice i’m new to this and have much to learn.
For the “floatinghair”, how do you think I can go about positioning it so it will stay in the right place?
Thanks for your all your help and patience!
May 2, 2014 at 2:06 am #169025Paulie_D
MemberWhat I meant by using a pseudo-element wasn’t for the #floatinghair div, I was imagining it either as a pseudo-element of the #contactbar or of the
div class="fotorama__stage"
. Then you can lose that #floatinghair div from your HTML altogether.I’m inclined to wards the latter option because you can then just position it at the bottom, set the height/width as a percentage of the ‘parent’, use the image as a background with suitable background size and it should scale automatically…I think.
Obviously I can’t do that with developer tools so you might want to test it out with a reduced case in Codepen.io first.
If anyone else is reading...does that make sense to you or am I overthinking this?
May 11, 2014 at 10:35 am #169811Kandi
ParticipantMay 11, 2014 at 12:34 pm #169820Paulie_D
MemberExcellent…glad you got it worked out.
-
AuthorPosts
- The forum ‘CSS’ is closed to new topics and replies.