JSFiddle - React, Tailwind, and code Playground
HTML
<footer>
<div id="footer">
<div id="footer-contents">
<!-- 左① -->
<ul id="footer-left">
<li id="footer-left-one"></li>
<li id="footer-left-two"></li>
<li id="footer-left-three"></li>
</ul>
<!-- 中央③ -->
<div id="footer-middle">
<div id="footer-middle-one">PRODUCED BY</div>
<div id="footer-middle-two"><span id="loginStatus">ログイン中:<span id="usrId">GUEST</span>様</span></div>
<br style="clear: both">
</div>
<!-- 右② -->
<div id="footer-right">右側アイコン</div>
</div>
</div>
</footer>
CSS
/* ■まず、フッター全体を黄色に */
#footer{
background-color:yellow;
}
/* ■コンテンツを入れる範囲をピンクに、中央寄せ */
#footer-contents{
background-color:pink;
padding: 0px;
position: relative;
max-width: 2000px;
width:1500px;
margin: 0 auto;
height: 55px;
}
/* //■□■□■□■□■□■□■ 左 □■□■□■□■□■□■ */
#footer-left{
background-color:red;
float:left;
left:0;
width:50%;
height:55px;
}
li {
background-color:purple;
float: left;
width: 40px;
height: 40px;
margin-left: 20px;
}
#footer-left-one{
}
#footer-left-two{
}
#footer-left-three{
}
/* //■□■□■□■□■□■□■ 中央 □■□■□■□■□■□■ */
#footer-middle{
background-color:white;
width:500px;
height:100;
margin:0 auto;
position: relative;
}
#footer-middle-one {
text-align: left;
width: 174px;
position: absolute;
float:left;
}
#footer-middle-two{
position: absolute;
text-align: left;
float:left;
}
#loginStatus{
font-size: 12px;
color: black;
font-weight: bold;
}
#usrId {
font-size: 12px;
color: green;
font-weight: bold;
}
#usrId::after{
content: '';
display:inline-block;
width: 5px;
}
/* //■□■□■□■□■□■□■ 右 □■□■□■□■□■□■ */
#footer-right{
background-color:blue;
text-align: right;
float:right;
width:50%;
height:100%;
}