开发者

Switch elements position with CSS3?

开发者 https://www.devze.com 2023-04-08 19:49 出处:网络
With CSS3, is it possible to switch 2 elements position? I think I remember someone showing me this with items in a list but I can\'t seem to find the style by googeling it.

With CSS3, is it possible to switch 2 elements position? I think I remember someone showing me this with items in a list but I can't seem to find the style by googeling it.

The reason I need this is im mobile optimising a site with m开发者_JAVA百科edia queries. On mobile devices my site has a 1 column layout, and currently blog images appear before the blog titles. I want these the other way around and I can't currently change the source order in the html.

Thanks


Of course. Using your media query to trigger this, you'd just set the position of the elements where you want them using any positioning property that works, including floats. But without the markup, I can't guess at what you have.

0

精彩评论

暂无评论...
验证码 换一张
取 消