html头像与文字一行,如何正确地为头像图像上的文本编写HTML和CSS?

博主在尝试创建一个简历联系表时遇到了布局问题,具体表现为文本未如预期显示在图像右侧,而是出现在徽标框下方。他们分享了当前的HTML和CSS代码,并寻求帮助理解如何正确实现文本与图像的并排布局。问题涉及到HTML的块级元素和CSS的布局属性应用。
摘要由CSDN通过智能技术生成

B0B5G.png

我不确定如何获取简历联系表底部的正确HTML和CSS。 当我尝试使用HTML和CSS时,文本不会位于图像的右侧。 所有文本都位于徽标框下方。 我仍在学习HTML和CSS,如果可能的话,想要一个解释。

到目前为止,这是我的HTML:

My Resume
Lorem ipsum . . .
Director of Web Development
ABCD Company
1999 - 2010
SHOW MORE

到目前为止,这是我的CSS:.resume {

width: 584px;

height: 65px;

font-family: Bitter;

font-size: 48px;

font-weight: bold;

font-stretch: normal;

font-style: normal;

line-height: normal;

letter-spacing: normal;

color: #575159;

}

.text {

width: 699px;

height: 262px;

font-family: Lato;

font-size: 24px;

font-weight: normal;

font-stretch: normal;

font-style: normal;

line-height: 2;

letter-spacing: normal;

color: #575159;

}

.logo-box {

justify-content: center;

}

.logo {

width: 146px;

height: 146px;

border-radius: 80px;

border: solid 1px #979797;

}

.job {

width: 561px;

height: 41px;

font-family: Bitter;

font-size: 30px;

font-weight: bold;

font-stretch: normal;

font-style: normal;

line-height: normal;

letter-spacing: normal;

color: #575159;

}

.company {

width: 560px;

height: 53px;

font-family: Lato;

font-size: 20px;

font-weight: bold;

font-stretch: normal;

font-style: normal;

line-height: normal;

letter-spacing: normal;

color: #575159;

}

.year {

width: 418px;

height: 22px;

font-family: Lato;

font-size: 18px;

font-weight: normal;

font-stretch: normal;

font-style: normal;

line-height: normal;

letter-spacing: normal;

color: #575159;

}

.show-more {

width: 181px;

height: 19px;

font-family: Lato;

font-size: 16px;

font-weight: normal;

font-stretch: normal;

font-style: normal;

line-height: normal;

letter-spacing: normal;

color: #92719e;

}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值