- This topic is empty.
-
AuthorPosts
-
September 14, 2013 at 5:33 am #150057
Mag
ParticipantHey, if you can help me out here I’ll appreciate :)
I’ve got a problem with a sidebar.. The content inside it need to be fixed (if there’s a lots of content it should scroll ). Buttons should stick to the bottom.. I’ve got problems with placing both things nicely (text on the top, buttons on the bottom) on different resolutions though. If it wouldn’t be position fixed I would use position absolute.. Is javascript required maybe?
Codepen: http://codepen.io/anon/pen/frFyb
September 14, 2013 at 6:08 am #150062Mag
ParticipantSeptember 14, 2013 at 7:39 am #150064georgearnall
ParticipantLooks fine to me, unless you are referring to this. Have you got an image of how exactly you want it to look or could you tell us how you would like the element to behave?
September 14, 2013 at 8:23 am #150068Mag
Participantgeorgearnall – if you press ctrl + minus in browser window – you’d get the effect I meant.. height of the text in the aside is not right.. It was based on % – that’s why..
jurotek – almost there.. but buttonContainer need to stick to the bottom of aside (or top of the footer – whatever :) )
hmmm what about counting the height of the browser’s window with javascript?
September 15, 2013 at 6:31 am #150140Mag
ParticipantUnfortunately, no :(
The content need to be fixed. When scrolling main content the content of sidebar must visible all the time( top of the sidebar + buttons on the bottom of the sidebar ) ..
September 15, 2013 at 9:35 am #150146georgearnall
ParticipantI am still not 100% sure what you mean. I have zoomed the page out but I am not sure what I am looking for. Anyway, does this work for you ?
September 15, 2013 at 11:34 am #150151Paulie_D
MemberBest I can do as short notice.
http://codepen.io/Paulie-D/full/emcqo
There are some magic numbers in there (widths & heights) but those can be played with and media queries will take care of the rest.
September 16, 2013 at 1:43 am #150176Mag
ParticipantPaulie_D – buttons need to stick to the bottom of the sidebar – even on 1440px heigh screen
georgearnall – yes it is almost what I wanted to achieve :) But in my case – footer is pretty high and when you are in the middle of scrolling there are too big spaces:
http://img89.imageshack.us/img89/3574/mf4m.png
Does anyone maybe know script that would detect my sroll position and attach buttons to the bottom and text to the top ( to decrease spaces..) ?
September 16, 2013 at 2:42 am #150184Paulie_D
Memberbuttons need to stick to the bottom of the sidebar – even on 1440px heigh screen
What you actually want, I think, is for the height of the sidebar to vary depending on the height of the viewport.
It seems that a JS solution is required.
Perhaps you could start a new topic / thread in the Jungle and link to this thread.
September 17, 2013 at 12:39 am #150235Mag
ParticipantYeah, you’re probably right.
Thank you guys for your help :) -
AuthorPosts
- The forum ‘CSS’ is closed to new topics and replies.