+ 1

Float

Can anyone explain me float in css, because I don't got it in the sololearn lession

9th Jun 2017, 8:29 PM
TrueJu
TrueJu - avatar
6 Réponses
+ 1
Julien >> Ok thank you! but now i want 2 pictures on the same line how can i make this? use display: inline-block
10th Jun 2017, 10:03 PM
Casey McCray
Casey McCray - avatar
+ 12
@Julien, post a link to your code.
10th Jun 2017, 9:24 PM
Wisdom Abioye
Wisdom Abioye - avatar
+ 6
float is like positioning an element either right or left. float: left; ######## #left float# ######## float:right; ######## #right float# #########
9th Jun 2017, 10:18 PM
Wisdom Abioye
Wisdom Abioye - avatar
9th Jun 2017, 11:09 PM
Wisdom Abioye
Wisdom Abioye - avatar
+ 1
Ok thank you! but now i want 2 pictures on the same line how can i make this?
10th Jun 2017, 8:12 PM
TrueJu
TrueJu - avatar
0
Grab the second element (image) and set its float property to "Right".
30th Nov 2020, 12:45 PM
Kotësh Mudila
Kotësh Mudila - avatar