Bootstrap 3 Align Text to Bottom of Div

Bootstrap 3 Align Text To Bottom of Div

I think your best bet would be to use a combination of absolute and relative positioning.

Here's a fiddle: http://jsfiddle.net/PKVza/2/

given your html:

<div class="row">
<div class="col-sm-6">
<img src="~/Images/MyLogo.png" alt="Logo" />
</div>
<div class="bottom-align-text col-sm-6">
<h3>Some Text</h3>
</div>
</div>

use the following CSS:

@media (min-width: 768px ) {
.row {
position: relative;
}

.bottom-align-text {
position: absolute;
bottom: 0;
right: 0;
}
}

EDIT - Fixed CSS and JSFiddle for mobile responsiveness and changed the ID to a class.

How to align div to bottom inside div bootstrap

Suppose you have 2 divs. Div A(Outer) and Div B(Inner). To achieve your task just place Div B code in Div A code and in Div B css class add this

position : absolute
bottom : 0

How to align text to bottom of background image with bootstrap 3

Try this

<div id="home-section" class="image-bg vertical-align">
<div class="container">
<div class="home-content padding ">

<h1 class="jumbo text-center"><em>This is the headline</em></h1>
<div class="button text-center">
<a href="/signup"" onclick="log('click','register','home-section')" class="btn btn-primary btn-animated">Start Free Trail</a>
</div>
</div>
</div><!--/#home-section-->

#home-section {
background-color:#7e90a2;
background-image:url(https://traken.net/images/bg/home-bg-3.jpg);
color:#fff;
height:900px;
position:relative;
}
div.home-content {
position:absolute;
bottom:10px;
left: 0;
right: 0;
margin-left: auto;
margin-right: auto;
}

jsfiddle -> https://jsfiddle.net/aq9Laaew/145890/

Align text to bottom of bootstrap panel

From the documentation of position: absolute

An absolutely positioned element is an element whose computed position value is absolute or fixed. The top, right, bottom, and left properties specify offsets from the edges of the element's containing block. (The containing block is the ancestor relative to which the element is positioned.).

So you need to put position: relative to your panel-content div.

How to align element to bottom in a Bootstrap column?

.bottomdiv {    border: 1px solid red;    height: 50px;    width: 50px;    position:absolute;    left:0;    bottom:0;}.col-md-6.col-sm-6.col-xs-6 {    display: table-cell;    height: auto;    border: 1px solid black;    float: none;}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script><script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script><link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/><div class="container">    <div class="row">       <div class="parent">        <div class="col-md-6 col-sm-6 col-xs-6">             <div class="bottomdiv">             </div>                     </div>        <div class="col-md-6 col-sm-6 col-xs-6">            <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>        </div>    </div></div></div>

Bootstrap 3 - Bottom align column within row

Try using position: absolute; and setting a bottom of 0:

.row {
position: relative;
}
.mainBox {
border: solid thin black;
}
.buttonBox {
position: absolute;
bottom:0;
right:0;
}

http://jsfiddle.net/6pYhx/3/

How to align content of a div to the bottom

Relative+absolute positioning is your best bet:

#header {
position: relative;
min-height: 150px;
}

#header-content {
position: absolute;
bottom: 0;
left: 0;
}

#header, #header * {
background: rgba(40, 40, 100, 0.25);
}
<div id="header">
<h1>Title</h1>
<div id="header-content">And in the last place, where this might not be the case, they would be of long standing, would have taken deep root, and would not easily be extirpated. The scheme of revising the constitution, in order to correct recent breaches of it, as well as for other purposes, has been actually tried in one of the States.</div>
</div>

Bootstrap 3 bottom vertically align image and link with link pull-right

Added a class to the div row that contains the context that should be aligned to the bottom:

.row {
position: relative;
}

.bottom-align-text {
position: absolute;
bottom: 0;
right: 0;
}

html:

<div class="row .... bottom-align-text" ..>

http://www.bootply.com/EbPZrjAw5w

Sample Image

Read also this: https://stackoverflow.com/a/24539629/1165509

How to align the text in div bootstrap grid to bottom?

As you are using flex, you can use the property align-self: flex-end.

.row-height, .col-xs-5 {
display: flex;
}

#address {
align-self: flex-end;
}

DEMO



Related Topics



Leave a reply



Submit