Results 1 to 2 of 2

Thread: form submit button help

  1. #1
    Join Date
    Dec 2004
    Posts
    83
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question form submit button help

    Hey guys,

    Need some quick help with submit button.
    I have simple ajax and php mail form, which uses post action.

    Right now I have this as my submit button:
    Code:
    <input class="submit" type="submit" name="sendContactEmail" id="sendContactEmail" value=" Send Email " />
    I want to style it as a normal link to look like a button.
    Code:
    <a class="Button" href="#"> <span class="btn">
    <span class="t">Read&nbsp;more...</span> <span
     class="r"><span></span></span> <span
     class="l"></span> </span> </a>
    How can I make it into submit button?

    Thanks,
    viktor

  2. #2
    Join Date
    Sep 2008
    Location
    Bristol - UK
    Posts
    842
    Thanks
    32
    Thanked 132 Times in 131 Posts

    Default

    You can't really make it look exactly like that, well, maybe with a few background images, but why do you want it to be a link if you just want a button.

    Here is some CSS to get you started anyway (just to start you off this will make a rectangular button that is dark and turns light grey on rollover):

    Code:
    <html>
    <head>
    <title>Example Page</title>
    <style>
    .Button{
    background-color:#111;
    padding:5px;
    text-decoration:none;
    color:#FFFFFF;
    font-family:verdana;
    border:2px solid #000;
    }
    
    .Button:hover{
    background-color:#666;
    }
    </style>
    </head>
    
    <body>
    
    <input class="submit" type="submit" name="sendContactEmail" id="sendContactEmail" value=" Send Email " />
    
    <a class="Button" href="#">Read more...</a>
    </body>
    
    </html>
    Of course, with just CSS the button doesn't look very good, but if you get a background image of a button you want you can make it look a lot better.

    Hope this sets you on the right track though,

    Jack

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •