Solved

HTML Submit Button Value on two lines

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

Accepted Solution

by:
Dave Baldwin earned 500 total points
Comment Utility
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
Comment Utility
http://jsfiddle.net/cpLbr1ge/

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

Open in new window

0
 

Author Closing Comment

by:Richard Korts
Comment Utility
I forgot about input type image.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Remove right text widget from smaller screens 15 42
Help with HTML 7 37
Best Practice CSS floating images 2 15
Css issue on scroll 1 18
This article discusses four methods for overlaying images in a container on a web page
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to customize the background color and font color of highlighted text using the ::selection element in CSS Begin by defining the selected text as an element in CSS by typing "::selection": Style the ::selection…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …

771 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

12 Experts available now in Live!

Get 1:1 Help Now