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 behind jquery slider

Featured Replies

Hi,

 

I have design my site using a jquery slider on the home page. It all works fine apart from the white background behind it.

 

http://www.durningelectrical.co.uk

 

If you look at the other pages, there are images the same size as the slider which have no problems displaying the background image. It is essential to show this on the home page behind the slider because the image has a shadow on it which runs around the full site.

 

My CSS for my banner images is:

 

       position: relative;
width:885px;
height:280px;
background-image: url(images/background.gif);
z-index:-1;
}

 

And my code for the slider is:

 

/* The Nivo Slider styles */
#slider {
       position: relative;
width:770px;
height:280px;
background-image: url(images/background.gif);
z-index:-1;
}

#slider img {
position:absolute;
top:0px;
left:0px;
display:none;
}

.nivoSlider {
position:relative;
}

.nivoSlider img {
position:absolute;
top:0px;
left:0px;
}

/* If an image is wrapped in a link */
.nivoSlider a.nivo-imageLink {
position:absolute;
top:0px;
left:0px;
width:100%;
height:100%;
border:0;
padding:0;
margin:0;
z-index:60;
display:none;
}

/* The slices in the Slider */
.nivo-slice {
display:block;
position:absolute;
z-index:50;
height:100%;
}

/* Caption styles */
.nivo-caption {
position:absolute;
left:0px;
bottom:0px;
background:#000;
color:#fff;
opacity:0.8; /* Overridden by captionOpacity setting */
width:100%;
z-index:89;
}

.nivo-caption p {
padding:5px;
margin:0;
text-align:right;
}

/* Direction nav styles (e.g. Next & Prev) */
.nivo-directionNav a {
position:absolute;
top:45%;
z-index:99;
cursor:pointer;
}

.nivo-prevNav {
left:0px;
}

.nivo-nextNav {
right:0px;
}

/* Control nav styles (e.g. 1,2,3...) */
.nivo-controlNav a {
position:relative;
z-index:99;
cursor:pointer;
}

.nivo-controlNav a.active {
font-weight:bold;
}

 

 

Any help is much appreciated, I've been stumped for hours on this apparently simple problem.

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.