You are making this one harder than it needs to be. It should be your goal to use as little CSS as possible to accomplish your layout. The more CSS you write, the more you have to maintain. And the more you use position: absolute;, the more you have to fiddle with every little element to get it's positioning just right.
Instead, try breaking this down into sections in the HTML and rely on block level elements and static positioning. Then break down those larger blocks into smaller blocks where necessary.
more-css-practice/airbnb/styles.css
Line 11 in 7c886b3
You are making this one harder than it needs to be. It should be your goal to use as little CSS as possible to accomplish your layout. The more CSS you write, the more you have to maintain. And the more you use
position: absolute;, the more you have to fiddle with every little element to get it's positioning just right.Instead, try breaking this down into sections in the HTML and rely on block level elements and static positioning. Then break down those larger blocks into smaller blocks where necessary.