There is the following form:
<form accept-charset="UTF-8" action="/admin/news" class="new_news" id="new_news" method="post">
<div class='row'>
<label for="news_content">Content</label>
<input id="news_content" name="news[content]" type="text" />
</div>
<div class='row'>
<label for="news_subject">Subject</label>
<input id="news_subject" name="news[subject]" type="text" />
</div>
<div class='row'>
<input name="commit" type="submit" value="Добавить" />
</div>
</form>
I need to align label in row with the fixed length and text is aligned by right:
label {
float: left;
text-align: right;
margin-right: 15px;
width: 100px;
padding-top: 5px;
font-size: 1.4em;
}
But it doesn't do what I need. What's the mistake? Thanks in advance.