SEO Book PRO SEO Dashboard v0.0.16 Blank WordPress Login Rich Snippets

How to position div element on bottom of its div container element

Article Details and Information
badge This article was written by SEO Book Pro | Published on 2:50 am, Wed, 3 March 21
SEO Book Pro Headline Feed rss_feed
Do you have content that you want on SEO Book Pro?
Here are a few ways to submit it to us.

SEO | Website Audit | WordPress SEO | SEO Audit Tools

↑ Grab this Headline Animator

Subscribe to Our Newsletter

Powered by FeedBurner

Enter your email address:

Delivered by FeedBurner

Code Snippet to Position a <div> element on bottom of it’s parent div container

If you have a parent div container which includes other div element and wants to fix the inner div element to the bottom of the parent container check this 2 simple style rules to make it happen. For example, if you have the following HTML div elements:

<div class=”main-element”>
<div class=”inside-main-element”>Some Text Message</div>

To add the second inner div with a fixed bottom position of the parent div container you need to add these rules in your CSS code like the example below:

.main-element { position: relative;}

.inside-main-element{ position: absolute; bottom: 10%; left:10%;}

After adding the code from above you will have the first div container with your style and options and the inner div will be fixed at the bottom of the height of the parent div container with absolute position rule and bottom CSS rule


03/03/2021 by SEO Book Pro
SEO Book Pro
5 stars
Technical SEO Audit
Quiet Valley Lane Sherman Oaks
Poway, CA 91403
8779 02354