AAA
AAA

Reputation: 3168

Arrange container content positioning

I have small container with the users name aligned all the way to the left, and as the name becomes larger i want the text to move the left therefore taking up empty space. How can i do this.

What i have right now:

.namelist {
 margin-left:300px;
 }

Upvotes: 0

Views: 92

Answers (1)

Jaspero
Jaspero

Reputation: 2972

Let me know if this helps

.namelist {
    width: 100%;
    text-align: right;
}

Upvotes: 2

Related Questions