html - Semantic UI : how to place an button at the bottom of a column? -
this simple question, after research, can't find way properly: have grid 3 columns in semantic ui , content of each column has specific height. try add button @ bottom of each column, "bottom aligned" doesn't work. has clue ? here example:
<div class="ui basic segment"> <div class="ui divided grid container"> <div class="three column row"> <div class="column"> hello <br> fdsfsd <br> fsfsd <br> fdsfsd <br> fsfsd <br> fsfsd <br> fdsfsd <br> fsfsd <br> fs </div> <div class="column"> <div class="segments"> <div class="ui segment">hello</div> <div class="ui bottom aligned segment"> fdsfsdf </div> </div> </div> <div class="column"> hello </div> </div> </div> </div>
thanks !
one way go use flexbox inside column position content , .ui.segment
div
js fiddle: https://jsfiddle.net/batrasoe/vq84trys/4/
<div class="ui segment"> <div class="ui divided grid container"> <div class="three column stretched row"> <div class="column"> <div class="segment-wrapper"> <div class="content"> </div> <div class="ui bottom segment"> </div> </div> </div> <div class="column"> <div class="segment-wrapper"> <div class="content"> </div> <div class="ui bottom segment"> </div> </div> </div> <div class="column"> <div class="segment-wrapper"> <div class="content"> </div> <div class="ui bottom segment"> </div> </div> </div> </div> </div> </div>
and css:
.segment-wrapper { background-color: #ddd; display: flex; flex-direction: column; } .content { flex: 1; background-color: skyblue; } .ui.bottom.segment { margin-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }
Comments
Post a Comment