Now I have two divs under a parent div:
<div id="block_container">
<div id="bloc1">
some words
</div>
<div id="bloc2">
<input placeholder="...">
</div>
</div>
where
#block_container
{
text-align:center;
}
#bloc1, #bloc2
{
display:inline;
}
#contact textarea {
width: 80%;
border: 1px solid #ccc;
background: #FFF;
margin: auto 0 5px;
padding: 10px;
}
This is ok for the two div components to align center. However I would like two align them two to left-right end: [some words <----- Space -----> input box]. I've tried:
#block_container
{
text-align:justify;
}
but that won't work.
Can you please kindly suggest to me how can I achieve this? Thanks.