Can an absolutely positioned element be floated? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 2

Can an absolutely positioned element be floated?

CSS3 Question!

4th Jul 2018, 12:27 AM
Hallam Franklin
Hallam Franklin - avatar
2 ответов
+ 2
Float and position absolute are incompatible but you can align to right with right: 0 on child (absolute) and make sure that parent its positiones (like position:relative). Anyway post a link to your code for get a more specific help
4th Jul 2018, 1:27 AM
KrOW
KrOW - avatar
+ 1
I agree with Kr0W. Floating is for elements in the document flow. Absolute positioning removes elements from the document flow.
4th Jul 2018, 3:10 AM
Janning⭐
Janning⭐ - avatar