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.

Header background image not showing in Firefox

Featured Replies

I have a site that I finished back in the summer, but still have a niggling problem that the background image on the h1 does not show in Firefox. It is all the more bizarre given that another site that I designed, with a similar bg image on a h2 works perfectly in Firefox.

 

 

The site is Pencefn Feeds

 

The h1 css is

 

h1 {
  color: #000033; 
  font-size: 15px; 
  text-align: left; 
  line-height: 1.5em;
  margin: 0 0 0.5em 0;
  background: url(uploads/Clean_Orange/h1 header.jpg);
  height: 30px;
  padding-left: 44px;
}

 

This h1 sits inside a div

 

div#h1bar {
  float: right;
  width: 600px;
  display: inline;  /* FIX IE double margin bug */
  /* margin-left: 0; */
}

 

Firefox does not pick up the image at all - not even when I 'View Image Information' in the Web Developer toolbar.

 

The other site is World Sheepdog Trials and the h2 css is

 

#content h2 {
font-size: 1.5em;
margin: 0 0 0.5em 0;
padding: 6px 0px 5px 0px;
background: url(uploads/andreas01/h2_bg.jpg);
}

 

I have tried all sorts, but am now totally at a loss as to why a seemingly simple piece of css does not work!

 

ANy help would be gratefully appreciated.

It because you have a space in the filename. You just need to wrap the path to the image in quotes:

 

background: url("uploads/Clean_Orange/h1 header.jpg");

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.