S
S
sprashivatel2020-03-03 03:43:14
css
sprashivatel, 2020-03-03 03:43:14

Why is the style only applied after a cache flush?

<div class="d-flex text-success">
    <div>
        <img src="/images/avatars/<?= $user->avatar ?>.jpg" class="h-100" alt="avatar">
    </div>
    <div class="text-left flex-grow-1 pl-1">
        Страна
        <div class="float-right"><?= $country->name ?></div>
    </div>
</div>

Loading: The country is pressed to the left to ava, now we press [Ctrl+F5] - it works out the text indentation on the left .pl-1, now we just refresh the page - The country is again pressed to the left to ava.

What's the matter?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
FeST1Val, 2019-07-17
@IwanQ

Most likely you meant it, then the problem is here:

.form {
 position: absolute;
}

Change to relative

A
Alexander Sharomet, 2020-03-03
@sharomet

Remove the h-100 class from the img tag.
Or like this:

...
<img src="/images/avatars/<?= $user->avatar ?>.jpg" class="img-fluid" alt="avatar">
...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question