html - line up button - multiple lines of text then button -


i have html page few lines each containing text button. text of different length i'd css automatically add space between each piece of text , button buttons line vertically.

for example:

<p>complete part one: <button id="one" type="button">one</button></p> <p>now fill in section two: <button id="two" type="button">two</button></p> 

looks like:

enter image description here

whereas i'd line up.

demo fiddle

simply add in css

button{   float:right; } 

if wish restrict width of 'lines' do, e.g.:

p{   width:400px; /* or similar limit width */ } 

Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -