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.

Background image + color problem (css)

Featured Replies

Hello everyone!

 

im having a problem in displaying background image on this site:

 

www.rcbosijek.com

 

i have a bg image thats going gradient from black to dark grey, and bg color of a page is dark grey, but my bg image doesnt appear in any browser...

 

here is my css for body:

 

body

{

font-family: Arial, Helvetica, sans-serif ;

margin: 0 ;

padding: 0 ;

border: 0 ;

outline: 0 ;

background: url(Images/bg1.gif) ;

background-repeat: repeat-x ;

background-color: #121212 ;

text-align: center;

}

 

where is the problem?

thanx in advance!

Using firebug its saying the image is missing and cant find it (404)

So you need to check your file path of your image and make sure its correct.

 

 

Is your css file in a sub folder? If so try this:

 

background: url(../images/bg1.gif) ; 

Edited by brucebat

Erm, just a quick tip, why not combine all of the background CSS?

 

background: #121212 url('images/bg1.gif') repeat-x;

 

Less lines = faster site :o

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.