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.

Help with Positioning

Featured Replies

Hello all, just joined.

 

I am struggling with a website i am working on - http://www.godownstairs.co.uk/about.html

 

I have an image that is 1920px wide and i want it centred without having to scroll left and right, I was working away quite happily until i tested it on a smaller resolution monitor (im 1920x1080) and it was well off. I am not sure what i am doing wrong. I put everything below the image into a div container with these figures -

 

#container {
margin: 0 auto;
width: 960px;
text-align: left;
}
and the headerimage is -
.headerimage {
background-image: url("images/headerimage.jpg");
height: 357px;
left: -8px;
margin: 0 auto;
position: relative;
width: 1920px;
}
I really am not sure what I am doing wrong can someone please help me as I am on a deadline!!
( I have just been doing it on the about page, the other 4 pages are even further off!! )
Thanks,
Con

 

try taking the header image div out of the container div, reopen the container div after the header image (change it to a class), then in your css remove the positioning to move it over to the right and put the width of the image to 100%, also add body { margin:0; padding: 0;} so the image goes right to the edge.

  • Author

Ok I think i Followed your orders correctly (sorry i am dyslexic - wrong occupation lol!)

 

The scroll bar has now gone, but the image isnt centered the lady on the left sahould be above the logo, but on my laptop she is way to the right.

 

http://wwww.http://godownstairs.co.uk/

 

I really appreciate this hepl though, I emailed my lecturer, but he is busy :(

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.