Can an absolutely positioned element be floated? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Can an absolutely positioned element be floated?

CSS3 Question!

4th Jul 2018, 12:27 AM
Hallam Franklin
Hallam Franklin - avatar
2 Answers
+ 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