Solved

HTML Submit Button Value on two lines

Posted on 2014-11-17
3
163 Views
Last Modified: 2014-11-20
I have an HTML submit button, I want the value to be "Update Labor" but due to size constraints, I want it to stack the words Update & Labor vertically.

How can I do that with HTML / CSS?
0
Comment
Question by:Richard Korts
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 40447963
Use an image instead of a button.  An <input type="image"> is defined as a submit 'button'.  http://www.w3schools.com/tags/att_input_src.asp
0
 
LVL 58

Expert Comment

by:Gary
ID: 40447976
http://jsfiddle.net/cpLbr1ge/

[type=submit]{
    white-space:normal;
    width:60px
}

Open in new window

0
 

Author Closing Comment

by:Richard Korts
ID: 40455480
I forgot about input type image.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

626 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question