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.

Javascript slider issue

Featured Replies

Hi - I am having real trouble customising a Javascript slider I am integrating into a new design. I have managed to customise everything so far except that the image (the first image that slides will not sit properly within the list item it is contained in. I have tried setting the padding and margin to 0 for both the ul and the li in the specific styles but no joy. I am now completely stumped. There seems to be some sort of padding or space within the list item (according to firebug) that stops the image from sitting 100% within the li (that is set to the correct height of 980px x 233px).

 

The link is here: http://samdelara.co.uk/previews/new-design/index.html

 

Can anyone offer any help or pointers? Would be a massive help!!

 

Sam

This is causing the padding

 

 

#main-page-container ul li {
   font-weight: normal;
   padding: 0 0 8px 25px;
}

 

If you need the above try changing this line in the slider css

 

#slider ul li {/*added ul */
   border: 0 none;
   height: 233px;
   margin: 0;
   overflow: hidden;
   width: 980px;
   padding:0 /*added padding 0 */
}

  • Author

mteam - that's brilliant - thank you so much. Feel stupid now - it was quite obvious! I was only looking at the slider.css styles. DOH! Thanks again.

 

Sam

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.