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.

Css absolute top

Featured Replies

Home: http://www.deafjetski.co.uk/index1.html (for testing only, none of the links are coded yet)

Css: http://www.deafjetski.co.uk/nav.css

 

I want to move the banner at the top with absolute position :0 But i don't want to mess the the site up and move everything. I want it the way it is just now, but without the gap at the top of the page there is not <br> tag there.

 

Also how do i set the return to top code? to go to the top of the page when the user clicks it?

 

Any more suggestion are welcome to improve it?

 

Regards,

Deaf_Raiders

global reset will help.

 

* {

margin:0;

padding:0;}

 

 

 

or add this to the body part of the css:

margin:0;

padding:0

Global reset might mess up the rest of the CSS.

 

body {

margin: 0;

}

Also how do i set the return to top code? to go to the top of the page when the user clicks it?

 

Regards,

Deaf_Raiders

 

If you place an id on any element at the top of your page, your h1 for example and then link to it.

<h1 id="top">My heading</h1>

<a href="#top">Back to the top</a>

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.