html - Vertical Button using CSS -



html - Vertical Button using CSS -

i'm trying build vertical button not able set text in 1 line.

until have:

css:

#hp-ctn-howitworks { position:fixed; top:300px; right: 0px; padding:0px; margin:0px; width: 40px; height:160px; background:#ff931e; z-index:15; border-radius: 3px 0px 0px 3px; } #hp-ctn-howitworks img { margin: 15px 0px 0px 13px; } #hp-ctn-howitworks p { color: #fff; -moz-transform:rotate(-90deg); -ms-transform:rotate(-90deg); -o-transform:rotate(-90deg); -webkit-transform:rotate(-90deg); }

html:

<!-- how works button --> <div id="hp-ctn-howitworks"> <img src="~/content/images/ui-symb-arrow-left-white-15x15.png" width="15" height="15" /> <p>como funciona</p> </div>

any thought how can force downwards text , set in 1 line?

you can using html non breaking space &nbsp; here <p>como&nbsp;funciona</p>

this how looks after changing , margin on image

jsfiddle

html css

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -