【发布时间】:2021-11-25 14:02:53
【问题描述】:
我有一个主标题、徽标和副标题,并且想将副标题放在中心,无论徽标的宽度如何。
在当前代码中,副标题的位置根据标志的宽度而变化,并且与主标题不对齐
<div class="flex justify-between items-center p-4 pt-10">
<div class="w-40"></div>
<p mode="" class="pb-8 w-72 flex justify-center text-white">AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA</p>
<a href="{{url('/')}}" class="text-green-500 text-lg underline font-bold text-right w-32 mr-10 pb-8"></a>
</div>
<div class="w-screen bg-red-500 bg-opacity-50 mb-5 py-5 text-white flex justify-between">
<img src="{{ 'storage/'.$logo}}" class="h-14 pl-24" alt="">
<h1 class="block text-3xl font-semibold text-center my-auto">xxxxx</h1>
<div class="w-72"></div>
</div>
如何处理?
【问题讨论】:
标签: html css tailwind-css