I am into designing my page and I've got troubled aligning the header. As you can see here:
I wanted the "Add" will align with the employee list. How would I do that?
By the way here's the html code: I've used bootstrap. But a native css suggestion is still good.
<div class="title">
<h4>Employee list</h4>
<span class="pull-right">Add</span>
</div>
Thanks
Move the Add
to before the <h4>
. When you float right, the target element should be before the other element if you want them to align.
Demo
HTML
<div class="title">
<span class="pull-right">Add</span>
<h4>Employee list</h4>
</div>
CSS
.pull-right {
float:right;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With