Reputation: 2413
I have two Divs that are floated right, but I would like one to come before the other. right now the #logout div is to the left of the #theme div. how do I get them to both float right but switch positions?
Upvotes: 0
Views: 65
Reputation: 4588
If both the elements were display:inline, you could use text-align:right on the parent to move both elements to the right. It depends on what you are trying to do, but this may solve your problem.
Upvotes: 1
Reputation: 79021
There is golden rule in programming and any field where it is related with developement.
Its a very simple logic, why are you thinking complex on such simple problem?
Upvotes: 0
Reputation: 3150
The quickest answer is to switch the order in which the div
tags appear in the HTML. If that's not an option, then you might have to drop the float
and do some manual positioning using CSS.
Upvotes: 4