+ 1

[SOLVED] How to align it in same lane?

https://sololearn.com/compiler-playground/WpcagVoCUwVO/?ref=app Is it possible to align that red part in same lane WITHOUT TOUCHING html code?

9th Jul 2025, 4:09 PM
Manav Roy
Manav Roy - avatar
3 odpowiedzi
+ 1
use justify-content:space-between; .songItem{ display:flex; justify-content:space-between; gap:7px; background-color:white; width:30vh; border-radius:10px; border:2px solid black; } i would also suggest a bit of padding and margin so that it would not look too squeezed-in and crowded together.
9th Jul 2025, 4:18 PM
Bob_Li
Bob_Li - avatar
0
Bob_Li Where to use paddling and margin? From serial numbers?
9th Jul 2025, 4:34 PM
Manav Roy
Manav Roy - avatar
0
something like: .songItem{ padding: 2px 3px; margin: 15px; ... }
9th Jul 2025, 4:41 PM
Bob_Li
Bob_Li - avatar