Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS How can I get my two main elements to be right next to each other? Reply To: How can I get my two main elements to be right next to each other?

#265004
Paulie_D
Member

If the fixed position element is of undetermined width there is no CSS that will calculate the remaining with to position the right div since the left div does not affect the elements around it.

A minimal Codepen.io demo would be helpful but my initial thought is that you will need javascript.

That said Hugo’s left div is NOT an undetermined width…it’s % based and so a calculation of the remaining width is just math.