gpt4 book ai didi

图像和表格之间的 HTML/CSS 文本段落

转载 作者:行者123 更新时间:2023-11-28 12:10:02 26 4
gpt4 key购买 nike

一段时间以来,我一直在尝试解决这个问题,如果我继续尝试自己解决这个问题,我想我的脑袋会爆炸。

我正在尝试做一些非常简单的事情,但我没有运气。我基本上是想在图像和表单之间添加标题和段落。

这是现在的样子:

这就是我试图让它看起来像的东西:

相关代码如下:HTML:

<div id="content_section4">
<p><img class="round" src="images/image5.jpg" alt="image1" height=175 width=175/></p>
<h1 id="connect">Connect</h1>
<div id="connect">blah blah blha blah joiefje blah blah blahblah blah balah I suck at html I hate my life
blah blah blah I have a cat blah blah blah blah blah blah blah eu2398re23ioj</div>

<!--contact form here-->
<div id="contact">
<br>
<form action="MAILTO:blah@blah.com" method="POST" enctype="text/plain">
<input name="name" type="text" value="Name" size="40" onclick="this.value = '';"/> <br><br>
<input name="email" type="text" value="Email" size="40" onclick="this.value = '';"/> <br><br>
<textarea name="message" rows="10" cols="33" type="text" style="overflow:auto;resize:none" />Message</textarea> <br><br>
<input type="submit" value="Send email"/>
</form>
</div>
</div><!--end contact_section4-->

还有 CSS:

#content_section4 {
float: left;
text-align: justify;
padding-left: 20px;
}

#content_section4 img {
float: left;
}

#connect {
width: 425px;
padding-left: 205px;
}

#contact {
float:right;
}

I don't have tons of experience in web design and I have been fussing with this for hours. Any help is greatly appreciated =)

最佳答案

你的 html 将是这样的..

<div id="content_section4">
<div id="content_left">
<p><img class="round" src="images/image5.jpg" alt="image1" height=175 width=175/></p>
<h1 id="connect">Connect</h1>
<div id="connect">blah blah blha blah joiefje blah blah blahblah blah balah I suck at html I hate my life
blah blah blah I have a cat blah blah blah blah blah blah blah eu2398re23ioj</div>
</div>
<!--contact form here-->
<div id="contact">
<br>
<form action="MAILTO:blah@blah.com" method="POST" enctype="text/plain">
<input name="name" type="text" value="Name" size="40" onclick="this.value = '';"/> <br><br>
<input name="email" type="text" value="Email" size="40" onclick="this.value = '';"/> <br><br>
<textarea name="message" rows="10" cols="33" type="text" style="overflow:auto;resize:none" />Message</textarea> <br><br>
<input type="submit" value="Send email"/>
</form></div>
</div>

你的 css 将是这样的..

#content_section4 {
float: left;

text-align: justify;

padding-left: 20px;

}

#content_section4 img, #content_left {

float: left;

}

#connect {

width: 425px;

padding-left: 205px;

}

#contact {

float:right;

}

享受乐趣..

关于图像和表格之间的 HTML/CSS 文本段落,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19556879/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com