[英]How do I add more text in this box?
I have this rounded box with text in it.我有一个带有文字的圆形框。 It's going to have a download button in it.它将有一个下载按钮。 I don't know how to add more text/links in it though, only one.我不知道如何在其中添加更多文本/链接,只有一个。
p { font-size: 34px; } #rcorners1 { border-radius: 25px; background: #D3D3D3; padding: 20px; width: 300px; height: 345px; }
<p style="font-size:67px;padding-right:13px;" id="rcorners1">Zinexium</p>
Would wrapping items in a div help?将项目包装在 div 中有帮助吗?
p { font-size: 34px; } #rcorners1 { border-radius: 25px; background: #D3D3D3; padding: 20px; width: 300px; height: 345px; }
<div id="rcorners1"> <p style="font-size:67px;padding-right:13px;">Zinexium</p> <p style="font-size:32px;padding-right:13px;">More text</p> </div>
Wrap elements you would like to be in the grey box in a div
, I added a class grey-box
.将你想要的元素包裹在一个div
的灰色框中,我添加了一个 class grey-box
。 Don't set a fixed width or height to the box unless necessary as this could cause an overflow which may not be desired.除非必要,否则不要为框设置固定的宽度或高度,因为这可能会导致可能不希望出现的溢出。 If you don't set a fixed height or width, the grey box will grow or shrink depending on the sizing of the elements within.如果您没有设置固定的高度或宽度,灰色框将根据其中元素的大小而增大或缩小。
p { font-size: 34px; }.grey-box{ padding: 20px; background: #D3D3D3; border-radius: 25px; }
<div class="grey-box"> <p style="font-size:67px;padding-right:13px;">Zinexium</p> <a href="#">Link 1</a> </div>
Just increase the height and width of the box,decrease padding and font size.只需增加框的高度和宽度,减少填充和字体大小。 Then you can increase the number of letters than before.然后你可以比以前增加字母的数量。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.