Help: creating a button with mulitline of text

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • skim
    New Member
    • Sep 2006
    • 9

    #1

    Help: creating a button with mulitline of text

    I am trying to create a button with multilines of text.

    <input type="submit" name ="switch" onclick="return confirm('Turn off httpd server?');" value="Turn OFF HTTP Server">

    I tried "\n" between words but didn't work.
    Please help me out.
  • ronverdonk
    Recognized Expert Specialist
    • Jul 2006
    • 4259

    #2
    I am not so sure you can do that. I tries it and <br> also did not work. So If you can't do it, you can always make an image using PHP/GD with text aligned exactly as you like it. Holler for the code.

    Ronald :cool:

    Comment

    • ronverdonk
      Recognized Expert Specialist
      • Jul 2006
      • 4259

      #3
      And if you don't want to use GD you can make a button using pure CSS. See the following artticle at Designing 3D buttons with pure CSS

      Ronald :cool:

      Comment

      • ronverdonk
        Recognized Expert Specialist
        • Jul 2006
        • 4259

        #4
        I found out that I can get a decent multiline button in html. With my editor I type the <input> line up to 1st part of the button text, hit Enter and continue the button text at pos 1 of the next line. That's how it works with my editor. Try it out with yours.
        [HTML] <input type="submit" name="Submit" value="Submitit
        to you and
        to the world">[/HTML]

        Ronald :cool:

        Comment

        • skim
          New Member
          • Sep 2006
          • 9

          #5
          It works. Thanks a lot!!!!

          Comment

          Working...