简体   繁体   English

我可以使用什么 CSS 代码来设置我想要的样式?

[英]What CSS code can I use to style this how I want?

我想做的事Quick Image #2快速图像 #2

How can I move this text box up and put information in the circled area in CSS?如何向上移动此文本框并将信息放入 CSS 中的圆圈区域? I am more of the developer type rather than a designer, so I need help with this.我更像是开发人员而不是设计师,所以我需要这方面的帮助。 The text area should be exactly the same.文本区域应该完全相同。 Thanks!谢谢!

EDIT: As for the rest of the form, I want it to be centered in the second half of the screen.编辑:至于表单的其余部分,我希望它在屏幕的后半部分居中。 Hopefully I clarified.希望我澄清。

Try this;尝试这个;

<div style="float:left;width:200px;height:200px">
    <textarea style="width:100%;height:100%"></textarea>
</div>
<div style="float:left;width:200px;height:200px">
    <div>
        <input type="text">
    </div>
    <div>
        Circled Area
    </div>
</div>

use div float:left property for that为此使用 div float:left属性

DEMO:演示:

 div.main{ float:left; } .txt{ height:600px; width:300px; }
 <div class="main"> <input type="textarea" class="txt"> </div> <div class="main"> <div> <input type="text" class="txt2"></div> <div> <input type="text" class="txt2"></div> </div>

other method其他方法

you can use <br> tag DEMO你可以使用<br>标签DEMO

 div.main{ float:left; } .txt{ height:600px; width:300px; }
 <div class="main"> <input type="textarea" class="txt"> </div> <div class="main"> <input type="text" class="txt2"> <br> <input type="text" class="txt2"> <br> <input type="text" class="txt2"> </div>

Float the text area to the left and put a div around the circled content and float it right.将文本区域向左浮动,并在带圆圈的内容周围放置一个 div,然后将其向右浮动。 The text box will rise to the top in the middle.文本框将上升到中间的顶部。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM