L
L
ligisayan2015-10-06 10:19:37
css
ligisayan, 2015-10-06 10:19:37

Why can't the responsive box be positioned centered at the bottom of the container?

I have an adaptive block with a width depending on the inscription. How to position it exactly at the bottom center of the breadcrumbs block so that it remains adaptive all the time. With the help of margins, I managed to arrange it the way I want, but there is a noticeable difference of 1px between chrome and safari browsers (I tried both pixels and em). It seems that such 1px, but on the site it immediately catches the eye. How can this be corrected? I look in the direction of absolute positioning, but then it turns out to be a problem with adaptability .. Sketched a fidl . (another gap arose in contrast to the original)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
ligisayan, 2015-10-06
@ligisayan

Nevertheless, I achieved the correct answer to my question
Thanks for the help!

.trail-end-wrapper {
    display: table-cell;
    min-width: 276px;
    height: 48px;
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 0);
}

S
Sasha, 2015-10-06
@userAlexander

Because of what there may be gaps
https://toster.ru/answer?answer_id=673057#answers_...
The rest is not clear, show the design.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question