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
Solved

HTML Submit Button Value on two lines

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …

807 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