html - Is it possible to put a button on either side of text? -
i want have button on 1 side of page, text, , button on right of text. know can create separate divs gets messy. there easier, cleaner way?
this simple, must trap
http://jsfiddle.net/esdjh/ first try.
http://jsfiddle.net/xwtzr/ sec edition.
html:
<p> <button class="pull-left">button 1</button>put text here<button class="pull-right">button 2</button> </p>
css:
p {text-align:center; width:333px; /* width based on button + text + button width */ margin:auto; /* center p */ } .pull-left{float:left} .pull-right{float:right}
html css button
No comments:
Post a Comment