CSS Alignment

Attached please find an image.  I'm not sure how to align something.  In the CSS definition,
.controls div.error::before creates the arrow.
 .controls div.error controls the text.  I want the text to be flush left, like in the attached image.  How do I do that?
.controls div.error::before {
    border-top: 11px solid transparent;
    border-left: 11px solid #ff6c0f;
    border-bottom: 11px solid transparent;
    content: "";
    font-size: 0;
    height: 0;
    line-height: 0;
    margin: 0 0 0 11px;
    position: relative;
    top: -5px;
    width: 0;
}
.controls div.error {
    color: #ff6c0f;
    font-size: 14px;
    height: 14px;
    position: relative;
    right: -250px!important;
    top: 5px;
    height:20px;
    float:left;
    z-index: 1000;
}

Open in new window

align.jpg
LVL 8
rgranlundAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

SSupremeCommented:
.controls div.error {
display: table-cell;
    color: #ff6c0f;
    font-size: 14px;
    height: 14px;
    position: relative;
    right: -250px!important;
    top: 5px;
    height:20px;
    float:left;
    z-index: 1000;
}

Open in new window

or
.controls div.error {
display: block;
    color: #ff6c0f;
    font-size: 14px;
    height: 14px;
    position: relative;
    right: -250px!important;
    top: 5px;
    height:20px;
    float:left;
    z-index: 1000;
}

Open in new window


Live example is good help to solve this issue. As you give no HTML snippet.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Brandon LyonSenior Frontend DeveloperCommented:
It's probably wrapping around the arrow because of float. I'd suggest trying inline-block instead of float.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
CSS

From novice to tech pro — start learning today.