I know that im missing something simple, but i can't get what exactly
HTML:
<div class="form-captions">
<div class="form-text">
Caption
</div>
<div class="form_error" style="display: block;">
sfgsdfg
asdf safgsafdgsdfgsdfgsdfghsdfhsdghs
asfdasssssssssssssssssssssssssssssssssssssssssssssssssss
sssssssssssssssssssssssssssssssssssssssfgsdf
</div>
<div class="clearfix"></div>
</div>
CSS:
.clearfix{
clear: both;
}
.form-captions {
width: 100%;
height: auto;
display: block;
clear: both;
padding-top: 20px;
min-height: 20px;
position: relative;
}
.form-text {
width: 100px;
font-size: 16px;
height: 20px;
color: rgb( 29, 29, 29 );
text-align: left;
position: relative;
float: left;
clear: left;
bottom: 0;
}
.form_error {
color: darkred;
float: right;
display: none;
margin-left: 5%;
width: 65%;
}
For the form-text block bottom works not from the bottom of the form-captions block (same position "with top: 0;"). But it works and reacts on value changes.
How can i make it works from the bottom or how can i move the text to of this block to the bottom of the "form-captions"?
Thanks