Reputation: 3653
I want these two elements to be displayed inline.
Here is the code:
<span class="login">Login <i class="icon-user"></i></span>
<form action="#" class="search">
<input type="search" class="search-input"/>
</form>
Thanks.
Upvotes: 1
Views: 90
Reputation: 137
You can solve it in few ways. One of them is
.login, form.search{
display:inline
}
Upvotes: 1
Reputation: 1247
you need to add float:left;
to the login class :
.login{
float: left;
}
Here's the jsFiddle
Upvotes: 1
Reputation: 97672
Put the span inside the form
<form action="#" class="search">
<span class="login">Login <i class="icon-user"></i></span>
<input type="search" class="search-input"/>
</form>
Upvotes: 1