How can I position my div at the bottom of its container

0 votes
Given the following HTML:

<div id="container">
  <!-- Other elements here -->
  <div id="copyright">
    Copyright Foo web designs
  </div>
</div>

I would like #copyright to stick to the bottom of #container. Can I achieve this without using absolute positioning?
Jun 1 in CSS by Edureka
• 9,940 points
28 views

1 answer to this question.

0 votes
Bottom and position properties can be used to position a div at the bottom of its container. To insert a div at the bottom of the container, set the position value to absolute and the bottom value to zero. The position attribute has several possible values, which are mentioned below:

absolute: When a division's location is relative to its parent, this property is applied (used in this example).
This feature is utilised when the position of a division on the screen is relative to other components on the screen.
fixed: This attribute is used when the location of a component on the screen needs to be fixed regardless of other HTML components (like a footer note).
answered Jun 10 by Edureka
• 9,540 points

Related Questions In CSS

0 votes
1 answer
0 votes
0 answers

How can I vertically center a div element for all browsers using CSS?

I want to center a div vertically with CSS. ...READ MORE

Jun 22 in CSS by Edureka
• 9,940 points
19 views
0 votes
0 answers

What is the default value of "position" attribute of a DIV?

I was just curious as to what ...READ MORE

Jul 4 in CSS by Edureka
• 9,940 points
31 views
0 votes
1 answer

CSS shadow white line at the end of linear-gradient background

This is a byproduct of the gradient ...READ MORE

answered Jun 1 in CSS by Edureka
• 9,540 points
206 views
0 votes
2 answers

Define a SQL query? What is the difference between SELECT and UPDATE Query? How do you use SQL in SAS?

HI.. SQL is Structured Query Language, which is ...READ MORE

answered Aug 8, 2020 in PHP by anonymous
4,735 views
0 votes
1 answer

Using/Handling colon inside a JSF generated HTML element ID in CSS selector

Yes, you can.  Just Backslash (\) the colon.  Like ...READ MORE

answered Nov 14, 2018 in Others by DataKing99
• 8,240 points
1,701 views
0 votes
1 answer

What is a css selector and where is it used?

CSS Selector is a combination of element ...READ MORE

answered Nov 21, 2018 in Data Analytics by Kalgi
• 52,350 points
280 views
0 votes
1 answer

What is the difference between span and div?

The div should be used to wrap sections of ...READ MORE

answered Jan 16, 2020 in Web Development by Niraj

edited Jan 21, 2020 by Niroj 2,313 views
0 votes
1 answer
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP