---------------------- ----------------------------->edge X
| | | |
| logo | | dropdown menu |
|____________________| |_________________________|
-------------------- -------------------- ----------------------- --->edge Y
| | | | | |
| | | | | |
| | | | | |
| section 1 | | section 2 | | section 3 |
| | | | | |
| | | | | |
|__________________| |________________| |___________________|
--------------------
| |
| |
| |
| section 4 |
| |
| |
|__________________|
This is an example of my current webpage layout.
Sections 1-4 represent different image groups. They are set to float left in order to align them in a single line when the page width allows for it. If the page size is insufficient, Section 4 will move to the next line.
The dropdown menu div uses float: right to always remain at the right edge of the page.
My question is:
How can I ensure that the right edge of the dropdown menu aligns with the right edge of the last section on the first line? In other words: edge X = edge Y