我是CSS中的新手,試圖在wordpress頁面的中心創建一個號召性用語。box in a box with css
我從頁面的其餘部分採取了一些樣式。
我在製作盒子內的盒子時遇到麻煩。第二個應該是在我的想法在大的右邊的不同顏色的文字和背景的右邊。
隨着我的嘗試(見下文),我無法將第二個定位在右側。
<div style="text-align:center;">
<div style="margin: 20px 0px; padding: 15px; background: #A5E5EF none repeat scroll 0% 0%;
border-radius: 10px; font-weight: normal; font-family: ProximaNova-Regular;
line-height: 26px;
font-size: 21px; color: #3D5B65; text-transform:uppercase;">
xxx xx xxxx xxxxxxx xxxxxx xxx xx xxx xxxxxxxx xxxxxxx
<div style="position:relative;right:10px;width: 30%;font-family: ProximaNova-Bold;
text-transform: uppercase;
text-shadow: 1px 1px 1px #000;
color: #FFF;
font-size: 19px;background: #FFF;border-radius: 10px;margin: 5px 5px;
padding: 5px;">CONTACT US
</div>
</div>
</div>
感謝您的關注