CSS Question
- Started
- Last post
- 3 Responses
- imavery
I would like to know if anyone knows of a solution to a bit of a contradiction of a problem. I'd like to have an element that automatically stays at the bottom right corner of the user's browser (which I've done) unless the user's browser reaches a certain height, and then the element creates vertical scroll bars, and doesn't overlap other elements on the page. Similar to confined floats, that have been stacked. Hope there is enough visual there
- heavyt0
I have a feeling that you are gonna need some JS for that conditional logic. vertical alignments arent exactly CSS's strongest suit.
- amullins0
yeah, you'll def need a little js to listen for browser resize events and add/remove css based on the viewport's height.
- amullins0
this should get you started (gray box @ lower right). add positioning as you see fit.
http://www.niftynewsite.com/sand…