April 5, 201214 yr Hello, Im pretty new to all this and have got a project to build a site for a mates band, i have made a holding page and uploaded it. The issue i am finding is that when the screens made smaller in the browser the background image stays fixed but the content will not keep in the middle. the site is www.themotherpartyride.co.uk. any advise would be great. thank you
April 5, 201214 yr My changes were a little wrong, so i'll delete my post and leave sash_oo7's reply to help. Edited April 5, 201214 yr by JordanC
April 5, 201214 yr body { background: url("http://www.themotherpartyride.co.uk/webbackground.gif") 50% 50% no-repeat fixed transparent; } change to body { background: url("http://www.themotherpartyride.co.uk/webbackground.gif") 50% 50% no-repeat center top transparent; } add before content div <div id="header"></div> then add this to css #header{height:400px;/*change according to height iof image*/margin:0;padding:0;} change this #content { background-color: #FFFFFF; border-bottom-color: #000000; border-bottom-width: 5px; border-left-color: #000000; border-left-width: 5px; border-right-color: #000000; border-right-width: 5px; border-top-color: #000000; border-top-width: 5px; height: 600px; margin-left: 600px; margin-top: 400px; width: 700px; } to #content { background-color: #FFFFFF; border:5px solid #000; margin:700px auto; } Edited April 5, 201214 yr by sash_oo7
April 5, 201214 yr Author Thanks for the help on this, ill look to make them changes. cheers sash_oo7
Create an account or sign in to comment