Solved

HTML Submit Button Value on two lines

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This article discusses four methods for overlaying images in a container on a web page
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
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 style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…

863 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now