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.

Site centres horizontally in IE but not in other browsers

Featured Replies

Title says it all. The site can be seen here. I am using the following CSS:

 

body {

background-color: #666;

color: #000;

font-family: Verdana, Geneva, sans-serif;

font-size: 12px;

line-height: 14px;

margin: 0; /* Sets the margin properties for an element using shorthand notation (top, right, bottom, left) */

padding: 0; /* Sets the padding properties for an element using shorthand notation (top, right, bottom, left) */

text-align: center;

float: right;

}

#outerWrapper {

background-color: #fff;

margin: 0 auto 0 auto; /* Sets the margin properties for an element using shorthand notation (top, right, bottom, left) */

text-align: left; /* Redefines the text alignment defined by the body element. */

width: 960px;

}

#outerWrapper #logo-area {

background-color: #FFF;

height: 108px;

width: 960px;

background-repeat: no-repeat;

}

#outerWrapper #header {

background-color: #ddd;

border-bottom: solid 1px #666; /* Sets the bottom border properties for an element using shorthand notation */

font-size: 18px;

font-weight: bold;

height: 150px;

line-height: 15px;

padding: 10px 10px 10px 10px; /* Sets the padding properties for an element using shorthand notation (top, right, bottom, left) */

}

#outerWrapper #header_nav {

float: right;

height: 50px;

width: 100px;

}

#outerWrapper #contentWrapper {

margin-left: 50px;

margin-right: 50px;

margin-top: 30px;

overflow: hidden;

}

 

There's more but I think that's the relevant bits.

Remove

 

float:right

 

From the body element, it should work fine then.

  • Author

Remove

 

float:right

 

From the body element, it should work fine then.

 

Thanks. Works fine now. Don't quite know why I put that in there, just didn't spot it.

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.