V
V
vasIvas2015-10-08 19:51:21
css
vasIvas, 2015-10-08 19:51:21

How to position the header inside the container?

There is a structure

.container
    img.user-photo
    h3.some-title

How do I make the title almost push to the bottom of the container when it has an image in it.
And when the image is not present, it was displayed in that point which would be a point of origin of coordinates of the image? And it's worth mentioning that I'm doing this in bootstrap3.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stanislav Gorovoy, 2015-10-08
@vasIvas

Well just ask

h3.some-title{
  position: absolute;
bottom:0;
}

And if .container has some height, then it makes sense to wrap
img.user-photo,h3.some-title with another block

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question