That happens because is an inline element. To pretend this use in CSS: .elementClass{ display: block; }