Answer the question
In order to leave comments, you need to log in
How to lay out div under img with float?
There is a picture with property float: left. Next to it, a span is displayed on the right with information such as first name, last name, etc. Then I need to place a div below the image. But it also wraps around the picture. How can I make the span wrap around the kariinka and the div be below it?
.user-header{
font-weight: 500;
color: #555;
font-size: 20px;
}
.user-header img{
width: 100px;
height: 100px;
border-radius: 100px;
margin: 5px;
float: left;
}
.user-header span{
font-weight: normal;
font-size: 16px;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question