- 0
Javascript Layout Issue
-
Recently Browsing 0 members
- No registered users viewing this page.
-
Similar Content
-
Microsoft introduces TypeScript 5.4: Explore the latest features and enhancements
By zikalify,
- microsoft
- typescript
- (and 4 more)
- 11 replies
- 3 views
-
JavaScript All-in-One For Dummies (worth $24) free in exchange for your email
By News Staff,
- ebook offer
- javascript
- (and 3 more)
- 0 replies
- 4 views
-
JavaScript from Frontend to Backend ($20.99 Value) FREE for your work email
By News Staff,
- ebook offer
- sponsored
- (and 3 more)
- 0 replies
- 3 views
-
Firefox vs Chrome: Mozilla finally manages to trump Google on Windows in a decade old test 1 2
By hellowalkman,
- 33 replies
- 5 views
-
Someone got ChatGPT to run on Windows 98 and other older Windows versions by making JavaGPT
By John Callaham,
- 9 replies
- 6 views
-
Question
Dick Montage
Hi
I'm building a layout, and ignoring all the stuff about sizing for mobile and so on - I want to achieve something fairly specific. When scrolling on large screens, the black "A title goes here" scrolls upwards until it sits under the menu and stops - that is working.
The sidebar similarly scrolls up until it sits under the menu and then stops. But the footer could impact it, so when the footer reaches the bottom of the sidebar, it "pushes" it up, so the sidebar scrolls with the page again.
This is all working just fine, but awkwardly on line 283, I am having to add a specific offset value. I know that if I change the height of any of the elements above the sidebar, the offset value needs to change. But I can't work out how to derive what it should be, so that any sizing of Hero image will work, for example.
Sorry for the messy code, I will be tidying that up once this works. Would anyone take a look? Also, yeah I'd never put all my CSS and JS in with my HTML normally, it's just for ease of postings sake.
Hope @mrbestersees this - he's usually great with these thing...
Thanks
Link to comment
Share on other sites
4 answers to this question
Recommended Posts