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.

cant get the inner body container to float center when image is changed to css

Featured Replies

Hi, all. I havnt done any css for a while so bear with me!

 

I'm trying to change the use of a image which is repeated

repeat-y 50% 0

the page is supposed to be 960px wide, with shadow and floating center.

 

so instead of the image i wanted to use css, everytime I change the width, it wont float center, but I need to difine the width somehow else it covers the whole body.

 

here is what Ive got...It's a bit messy...

 

/*.bg1{background:url(../images/shadow-bg.png) repeat-y 50% 0}*/
.bg1{background:#fff; width:960px; alignment-adjust:middle;-moz-box-shadow: 3px 3px 4px #CCC;

-webkit-box-shadow: 3px 3px 4px #CCC;

box-shadow: 3px 3px 4px #CCC;

/* For IE 8 */
-ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#CCCCCC')";

/* For IE 5.5 - 7 */
filter: progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#CCCCCC');}

 

 

PLEASE HELP! Thanks!!! :)

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.