CSS: Switch position with another
http://forums.animefushigi.com/showthread.php?161-Poll-Test
I want to switch the position of "Vote Now" and "View Poll" Results buttons
I'm having trouble figuring how what css to change to do this
edit oh sorry, you can Login with Test /开发者_运维问答 test
you can use css
float:left; / float:right;
I think it's a mild misconception than CSS can switch positions of elements arbitrarily. It all depends on the design of the layout and its accompanying HTML.
Seeing your HTML will help!
If you knew the widths of side-by-side elements, you can position them but that's not very robust if the layout is fluid or different browser vendors or settings influence the elements widths. Positioning can lead to nasty overlapping elements.
Floating your buttons within their container may be an option, e.g. if the buttons are float:left, they will be in their original order. If they are float:right, their order will be reversed. Their container will need to be floated too probably. I'd need to see the HTML to explain it with confidence.
精彩评论