使用“订单”时,将2个Divs放在同一行上在flexbox中,无需调整HTML标记(CSS)而在您可以修改标记时
我正在使用一个名为Divi Blog Extras的插件,该插件在CSS中使用“顺序”来定位DIV容器。我试图将两个Divs(.post-meta和.post类别)放在彼此之间,因为我已经纠正了订单,以便它与我的客户的设计相匹配,但是我正在努力使它们彼此相邻。
我尝试过浮标,内联风格和弯曲,但似乎没有任何影响它们的定位。看起来应该相对简单,但我无法按照应有的方式排队。
您是否有可以使用的建议( 绝对将其定位 - 除非这是唯一的方法)?
这是可以看到代码的演示网站(博客文章项目): https://miles.birdhouse-demos.com/blog/
这就是这个博客项目看起来像是开箱即用的: https://snipboard.io/hl5dqe.jpg
: https://snipboard.io/izetmy.jpg
预先感谢您!
I'm using a plugin called Divi Blog Extras which is using "Order" in CSS to position DIV containers. I am attempting to put two divs (.post-meta and .post-categories) next to each other now that I've corrected the order so it matches my customer's designs, but I am struggling to get them next to each other.
I have tried floats, inline styles, and flexing, but nothing seems to affect how they position themselves. It looks like something that should be relatively straightforward yet I cannot get these to line up as they should.
Do you have any suggestions I could use (without absolutely positioning these - unless that's the only way)?
This is the DEMO website where to code can be seen (blog article item):
https://miles.birdhouse-demos.com/blog/
This is what this blog item looks like out of the box:
https://snipboard.io/hL5dqe.jpg
This is the goal based don't the client's designs:
https://snipboard.io/IZEtmY.jpg
Thank you in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以将这两个项目都移至新的样式中,然后将它们并排放置
You can move both of those items into a new and then style that div to position them side by side
好吧,您可以得到这个结果。

进行以下操作:
p
标记在div
将
中
。
Well you can get this result.

By doing the following:
Put the
p
tag inside thediv
.From this:
To this:
And changing some styles, from this:
To this: