gpt4 book ai didi

html - 如何将文本移到图像的右侧?

转载 作者:行者123 更新时间:2023-11-28 05:24:31 25 4
gpt4 key购买 nike

我的代码显示:

Current Display

我希望它看起来像这样: enter image description here

HTML:

</div>
<div class= "Row1">
<h2>Looking for a Job?</h2>
<p> Applying to a job can be such a chore.&nbsp;&nbsp;But chore no more!&nbsp;&nbsp;Send me your resume regardless of state and I will do the leg work for you. <br>
I have helped many people apply to jobs.&nbsp;&nbsp;I am not a paid for recruiter.&nbsp;&nbsp;I will look for your dream job regardless of industry, no kickbacks just your success!</p>
<img src= "http://laura.finance/img/road.png">
</div>

最佳答案

只需稍作修改即可使用您的代码

HTML:

<div class= "Row1">
<div class="left">
<h2>Looking for a Job?</h2>
<p>
Applying to a job can be such a chore.&nbsp;&nbsp;But chore no more!&nbsp;&nbsp;Send me your resume regardless of state and I will do the leg work for you. <br>
I have helped many people apply to jobs.&nbsp;&nbsp;I am not a paid for recruiter.&nbsp;&nbsp;I will look for your dream job regardless of industry, no kickbacks just your success!
</p>
</div>
<div class="right">
<img src= "http://laura.finance/img/road.png">
</div>
<div class="clearfix"></div>
</div><!-- End row -->

CSS:

.Row1{
padding: 15px;
background-color:red;

}
.right img{
width: 100%;
}
.left{
Float:left;
Font-size: 30px;
width: 70%;
}
.right{
float: right;
width: 30%;
}
.clearfix{
clear: both;
}

关于html - 如何将文本移到图像的右侧?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34465003/

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