bootstrap button: Stretch to fill its container space
Have you tried btn-block? <a class=”btn btn-default btn-block”></a> And try width:100% on <div class=”btn-group” style=”width:100%”>
Have you tried btn-block? <a class=”btn btn-default btn-block”></a> And try width:100% on <div class=”btn-group” style=”width:100%”>
You can use self.imageView.contentMode = UIViewContentModeScaleAspectFit; Swift 3: imageView.contentMode = .scaleAspectFit Or UIViewContentModeCenter / .center, or any of the other modes described in the UIView documentation.
Another option is, instead of floating, to set the white-space property nowrap to a parent div: .parent { white-space: nowrap; } and reset the white-space and use an inline-block display so the divs stay on the same line but you can still give it a width. .child { display:inline-block; width:300px; white-space: normal; } Here is … Read more