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.

Display help

Featured Replies

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

My changes were a little wrong, so i'll delete my post and leave sash_oo7's reply to help.

Edited by JordanC

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 by sash_oo7

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.