Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

One page website

Featured Replies

I'm just wondering how those stylish one page websites are made? They have anchor links at the top which automatically scroll down the page when clicked (via jQuery I presume).

 

Thanks

Exactly right. Most of them use Jquery to do this.

 

Check out Jquery ScrollTo plugin. Does exactly this (and you can do some other cool things with it.)

Or if you want to step it up a notch, have a look at 'HTML5/CSS3 parallax' on Google.

 

Here's an example - just load and click a nav item (or scroll).

Edited by andy9l

  • Author

Thanks for the reply guys, anyone know how to actually make a one page site?

When you say "actually make one" do you mean, how do you code it?

Edited by AaronAlderman

  • Author

Yes, I know its CSS(3), HTML(5) etc but i'm unsure how to find the correct sizes etc.

  • Author

Nooo, well kind of yes. Like, how big each section needs to be in order to fill the screen. Height 100% wouldnt work because it would fill the whole screen? I need different pages to be different background colours. I'll try and find an example.

Ah I see, well if you want them to all be exactly the height of the browser (or taller), perhaps some jQuery:

var height = $(window).height();
$(".page").css("min-height", height + "px");
Then your markup:

<section class="page">
  <h2>Section one...</h2>
  <p>Etc.</p>
</section>
<section class="page">
  <h2>Section two...</h2>
  <p>Etc.</p>
</section>
Although there are likely CSS alternatives, or better ways to approach the whole thing.

Edited by andy9l

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.