Avatar of Robert Granlund
Robert Granlund
Flag for United States of America asked on

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
CSSHTML

Avatar of undefined
Last Comment
Brandon Lyon

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
SSupreme

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
Brandon Lyon

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23