June 21, 201412 yr 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
June 21, 201412 yr Author On top of what i just wrote, ive been playing with it on the home page http://www.godownstairs.co.uk and it now looks centred on the smaller resolution But you can scroll right to the left, how can i fix this.
June 21, 201412 yr 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.
June 21, 201412 yr 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
June 21, 201412 yr no probs, dont forget to check your html for errors, i think you have failed to close the container div.
Create an account or sign in to comment