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.

Bootstrap Accordion Issues

Featured Replies

Hello.

 

I'm using Bootstrap for the first time and are having a couple of issues with my accordion on http://worldofwinfield.co.uk/.

 

Firstly I am using images of different sizes and the only way I can think of to align them all is to set a min-height:

 

.thumbnail .caption {
padding: 9px;
color: #333;
min-height: 200px;
}

 

Is there a more elegant way? The problem being that I now have stretched images.

Also is there a way to align the buttons?

 

The final question is more tricky as I have set a canvas element as a background (something else new to me - canvas that is), and now the top two accordion rows do not work.

 

I might just scrap the canvas anyway as it is unnecessary but I want to understand why I have broken the accordion.

 

Any guidance greatly appreciated.

 

Thanks

James

 

There is two simple way:

 

1. create images more then container and set max-height.

2. jquery

var thumHeight = $(".thumbnail").height();

$(".thumbnail img").height(thumHeight/3);

jsfiddle

Edited by fleur

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.