How can I put division tag within input tag?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Touhid Rahman
    New Member
    • Dec 2011
    • 1

    How can I put division tag within input tag?

    Hello There !
    Can you tell me that, how can I put division tag within input tag? I need it to add my rollover button within submit form.
    Thanks in Advance :)
  • drhowarddrfine
    Recognized Expert Expert
    • Sep 2006
    • 7434

    #2
    You don't. Input elements are controls that accept user input and that's all. They don't contain anything.

    Comment

    • charles07
      New Member
      • Dec 2011
      • 45

      #3
      u can't add div inside input elements. if you make requirements more clear, we could help you better

      Comment

      • lgm001
        New Member
        • Jan 2012
        • 9

        #4
        I think I get what you mean...

        You want hover effects on you submit button?

        <form id="myform">
        ...
        <a class="mybutton " href="javascrip t:document.myfo rm.submit(); return true;">Button Text</a>
        </form>

        Now you can style the button anyway you like with...

        a.mybutton { styling the normal state }
        a.mybutton:hove r { styling for the hovered state }

        if you want to specify background colours, borders etc... you will need to add display: inline-block;

        Comment

        • limweizhong
          New Member
          • Dec 2006
          • 62

          #5
          You can use the button tag instead. See http://www.w3schools.com/html5/tag_button.asp

          Comment

          Working...