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.

Positioning will not work. Help really appreciated!

Featured Replies

Hi

I am developing the page design of my website and I having difficulty with the positioning of the main content. Despite using margin-top css, I can't move the content down as the slider is covering it. Also, the content also gets hidden by the footer.


Any help would be really appreciated.

 

The page is hosted at http://calebkingcott.com/pagerepair.html

 

Thanks,

 

Caleb

You should change the slider div to have a relative position instead of absolute, which will then force the content below it to move down.

 

#slider {
position:relative;
}

It's absolute position is causing the next element (the container) to move upwards because an absolute position basically takes the div off the map so to speak, so the next element will go off it's parent element, which in this case is your wrapper (as the header, nav and slider all have absolute positioning).

 

Hope that makes sense!

 

Anyway, the position: relative on the slider element fixes your problem.

  • Author

Thanks Lyndsey, that worked a treat!

I think I'll go back and learn more about positioning as I still struggle with it a bit.

 

Thanks again

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.