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.

Creating a list using tiny thumbnails

Featured Replies

Hi there

 

 

I'm having a bit of a mental block regarding lists today and so thought I'd post a thread in the hope someonw can help me out...

 

I've got lots of tiny sqaure thumbnails I want to list in the footer of my site and want it to look like this:

 

post-7-1188643640_thumb.gif

 

I want it to be a list and can't figure out how to do it.

 

Any ideas?

 

 

E

 

p.s. I know I'm going to kick myself when someone tells me.

  • Author

it's OK, I think I've figured it out now...

set the UL to be a block element of width 236px, and each LI to be display block, float left, and the images with a bit of padding/margin.

  • Author

I did it like this:

 

 

<ul class="imglist">
<li><a href="#"><img src="" /></a></li>
<li><a href="#"><img src="" /></a></li>
<li><a href="#"><img src="" /></a></li>
<li><a href="#"><img src="" /></a></li>
</ul>

 

and the CSS is:

ul.imglist {
margin: 0px 20px 20px 20px;
padding: 0;
}

.imglist li {
display: inline;
list-style-type: none;
}

 

is that the best way to do it?

I'd say so.

Only time you need to float them is if you need to add width, height or padding to the LI elements; as you then need a block element to do so. But floating required you to clear the floats, display: inline; is less hassle.

ah, i figure the margin around the image was added by the CSS, but if it is added in the image creation stage, then inline display is fine.

either, post a linky, that looks well cool.

 

they say the devil is in the detail, and I like that ;)

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.