我在div
文本框中使用图像,并且该图像上有某种边框/浮雕,因此文本越过该部分并且看起来很糟糕,因此我想将文本 cca 定位在右侧 15 像素,但无论我尝试什么都没有工作
html:
<div id=textarea>
<h2> Tardis -time music festival </h2>
<p>
<br/> Hello fellow time travelers,
<br/> Do you enjoy Music as much as Time travel?
<br/> If you do this is the right festival for you!
<br/> You don't even have to travel, we come to you,
<br/> And take you tot he biggest time adventure of your life!!
<br/> experience birth of music, the first rock song and much much more.
</p>
</div>
和CSS:
#textarea{
background-image:url(images/text.png);
background-repeat:no-repeat;
border:none;
width: 910px;
height:300px;
color:#CAAA5B;
padding:3px;
margin-right:4px;
margin-bottom:8px;
float:right;
}