Yeah thats what i’ve been trying to do and it works to a degree, but there is a gap between the normal style sheet at the lower res and the normal one.
Means i have the problem of scrolling to the box in that gap.
Is it not possible because of how the fixed style works?
Try using a % value to define how far from the top of the document you want it to appear. That way it should scale to any size viewport given a bit of tinkering…
Using the bottom and top attribute are to ensure it’s down at the bottom, but not so far down that it looks bad. And the class is added automatically when the JS detects a small viewport.
So, Jez, I think the way it’s set up right now is the best. Most people who have small screen resolutions aren’t going to have small ones only horizontally, so that means there won’t be a space between your images & your “project details”, it may end up being on top of the images some, but really what Rayzur is saying is what you have is actually the best thing you could have.
If you want to insure access to it for all viewports then you would need to use bottom:0; and let lay on top of the images whenever that condition happens.
Hi,
To answer your question, there is no way around it.
Fixed elements are positioned in relation to the Viewport and if there is not adequate space available it will go below the fold and position itself out of sight. It is still there but you cannot scroll to a fixed element. That is why it is best for them to be near the top of a page.
As you are aware, you have no control of your users screen size. Some people have several toolbars stacked up on their browser head and that pushes the top of the Viewport down even further.