O
O
Oleg Korolenko2017-08-29 16:56:29
css
Oleg Korolenko, 2017-08-29 16:56:29

How to put a link at the bottom and center of the parent div?

Hello. I need to place a link at the bottom and center of the parent div I don't know how to do it.
But so that the rest of the elements do not float, please help)

.publications-list .col-sm-4 {
  height: 400px;
  margin-top: 45px;

}

.publications-list .col-sm-4 a{
??????
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Peter, 2017-08-29
@legoex

.publications-list .col-sm-4 {
  height: 400px;
  margin-top: 45px;
  position: relative;
}

.publications-list .col-sm-4 a{
   position: absolute;
   left: 50%
   bottom: 0;
  transform: translate(-50%, 0);
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question