We can set div with left image and button at the bottom by two methods as follows:
Method 1: Using bootstrap
Float-left
These utility classes float-left a component to the left or disable floating, based on the current viewport size utilizing the CSS float property. !important is included to dodge (avoid) specificity issues. These utilize the same viewport breakpoints as our grid system.
Position-relative
It is same as CSS property position: relative.
Position-absolute
It is same as CSS property position: absolute.
Example:
<!DOCTYPE html>
<``**html**
lang``=``"en"``>
<``**head**``>
<!-- Required meta tags -->
<``**meta**
charset``=``"utf-8"
/>
<``**meta**
name``=``"viewport"
content="``width``=``device``-width,
initial-scale``=``1``,
shrink-to-fit``=``no``" />
<!-- Bootstrap CSS -->
<``**link**
rel``=``"stylesheet"
href``=
"[https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css](https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css)"
integrity``=
"sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk"
crossorigin``=``"anonymous"
/>
<``**script**
src``=
"[https://kit.fontawesome.com/577845f6a5.js](https://kit.fontawesome.com/577845f6a5.js)"
crossorigin``=``"anonymous"``>
</``**script**``>
<``**title**``>Set div with left image
</``**title**``>
<``**style**
type``=``"text/css"``>
.bottom-left {
left: 0;
}
</``**style**``>
</``**head**``>
<``**body**``>
<``**h1**
style``=``"color: #006400;"``>
<``**br**
/>
GeeksforGeeks
</``**h1**``>
<``**div**
class``=``"float-left"``>
<``**img**
src``=
"[https://media.geeksforgeeks.org/wp-content/uploads/20200712114621/testimg.JPG](https://media.geeksforgeeks.org/wp-content/uploads/20200712114621/testimg.JPG)"
height``=``"150"
/>
</``**div**``>
<``**div**
class``=``"position-relative"
style``=``"color: green;"``>
<``**h1**``>Hey There..!!</``**h1**``>
<``**p**``><``**b**``>This is an Example..</``**b**``></``**p**``>
<``**p**``>Here I have used class float-left of
bootstrap to set div with left image.</``**p**``>
<``**br**
/>
</``**div**``>
<``**div**
class``=``"position-relative"``>
<``**div**
class``=``"position-absolute bottom-left"``>
<``**button**
type``=``"button"
class``=``"btn btn-success"``>
Click me!
</``**button**``>
</``**div**``>
</``**div**``>
</``**body**``>
</``**html**``>
Output:
Note: If your content is less then kindly place**
** tag at end of content or else button will misplace as it is position-relative to content.
Using **bootstrap 3 **we can set div with left image & button at the bottom and right image & button at the bottom by a bootstrap grid system too as follows:
#bootstrap #web technologies #bootstrap-misc #picked