How to keep web content below the users view?

kayhart

This is a strange question but, is there a way to keep a block of content below the view of the page no matter what size the page is?

I've seen it where parallax scrolling kind of does that but it's more code than I need. I don't plan on having any foreground / background scrolling effects.

Just want a title page that will show and a call to action button that will scroll down to content with no unnecessary amount of margin/padding that would skew the flow on a mobile device.

Example of view on desktop and mobile

Example of almost working product http://www.keisha.in/testing

/*Section 1 */
#portfolio {
    margin-top: 100%;
    position: absolute;
}

/*Section 2 */
#resume {
    margin-top: 200%;
    position: absolute;
}

<div id="title"> Title Page  <a href="#portfolio">Work</a> </div>


<div id="portfolio"> Stuff </div>

<div id="resume"> Other Stuff </div>
NoSense

I'm not very sure that I understand your question but this is maybe a rough variant of what you are looking for - DEMO

HTML:

<div class="main-content">
    <a href="#bottom_content">Read theText...</a>
</div>

<div class="bottom-content" id="bottom_content">
    blah...blah...blah...blah...blah...
    blah...blah...blah...blah...blah...
</div>

CSS:

.main-content,
.bottom-content {
    position: absolute;
    width: 100%;
    height: 100%;
}
.main-content {
    background: red;
}
.bottom-content {
    margin-top: 100%;
    background: blue;
}

For additional help - share with us your example code.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How to place an ad below the web view

How do I keep the footer position below content on multiple pages

How to keep partial view from overlapping content on main view page

How to calculate web view content height in iOS?

How to efficiently allow for users to view Amazon S3 content?

How to limits some users to view Django admin content by default permission

How to view the logging of Google Web App when other users are executing it?

How to keep track of processed users?

How to keep precision entered by users?

In Pyramid how should I keep a list of users and allow adding more with a registration view?

How to add the View below the TableView?

How to know that there is no content to show in Web View anymore in Xamarin Forms?

I am new to flutter web, how to authenticate users using firebase phone authentication, is there a way to keep user logged in?

How to fit and keep video below transparent background?

How to let users view a public folder's calendar content without letting them see details within appointments?

Is it possible to easily center the content of the view below AppBarLayout, inside CoordinatorLayout?

Content not shown when recycler view is placed below AppBarLayout

Tap a view below a tableview that has a top content inset

how to display content below fullscreen background video

How to place content below a position absolute item

How to put the footer div below the content?

How to remove white space below the content

How show iframe with content below at FancyBox?

In a custom dropdown, how to push down content below?

How to create a footer below the main content?

How to place content below the inner box shadow?

How to keep logs of your users in Laravel 4?

How to keep a changing view centered?

How to keep the view of VSCode unchanged