www.webdeveloper.com
Results 1 to 2 of 2

Thread: Button Links

Hybrid View

  1. #1
    Join Date
    Oct 2012
    Posts
    1

    Button Links

    Hi Everyone,

    I'm a newbie here and a web design student. Can anyone help me please. I'm trying to make a button links but each time I tried it on the browser it's not working.

    here's my code:
    Code:
    <a href="New Topic.html" ><input type="submit" name="new topic2" id="new topic2" value="New Topic" /></a>
    Thanks in advance, your help will be highly appreciated.

    Best,
    Nicole

  2. #2
    Join Date
    Oct 2012
    Location
    Gujarat, India.
    Posts
    35
    I don't get what you want to do, i guess you want to open link when a button is clicked. You can do this instead of making it button, in fact you must do this (unless you use PHP to open .php pages).

    In html:
    <a href="New_Topic.html">New Topics</a>
    In css:
    .button {
    padding: 2px; /*So border doesn't sting up with text*/
    border: 1px solid black; /*Drawing 1 Pixel, Solid Black colored border */
    border-radius:2px; /*Making border's round so it doesn't looks like rectangle (in short making it rounded rectangle) */
    /* Some decorations */
    background-color:gray;
    color:black;
    }
    /*Some more decorations when hovered */
    .button:hover {
    background-color:blue;
    }

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles