How can I make an element visually switch position with another element using CSS? For example, if I have this HTML markup:
<html>
<body>
<div class="div1">Div1</div>
<div class="div2">Div2</div>
<div class="div3">Div3</div>
</body>
</html>
I want .div3
and .div1
to switch places. How can I do this using CSS?