S
S
Stas Karpik2020-04-19 18:37:51
css
Stas Karpik, 2020-04-19 18:37:51

How to remove wrapping from float?

There is an image that needs to be pressed to the right edge:

5e9c70409edfd481322961.png

As a result of adding the image, it wraps around: The sizes of images are not fixed and can be different. How to do it? float: right

5e9c6eb82e04b566773131.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
alex_ok83, 2020-04-19
@ka40kstas

float is no longer used, but if you really need it, then it used to be treated by adding pseudo-elements:
.float_class { &:before, &:after { content: ''; display:table; }} something like this, but now it's easier to do it with grids or display: flex

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question