Solved

HTML Submit Button Value on two lines

Posted on 2014-11-17
3
149 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
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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
Find out what you should include to make the best professional email signature for your organization.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…

777 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