Waqas Tahir
Waqas Tahir

Reputation: 8252

Display text on the right of the div tag

What i want to do is the text that is bold i want to show it up here enter image description here And my code is

    img{
        margin-left:10px;
    }

html

<div id="wrap">
    <img src="bg.jpg" />
    <b class="name">WaqasTahir</b>
</div>

Upvotes: 0

Views: 334

Answers (1)

Andy
Andy

Reputation: 4778

You need to float your image to the left:

#userimg{
    margin-left:10px;
    float: left;
}

Example

Upvotes: 1

Related Questions